← back to SmokeShop
harden window.open instagram external opens with noopener,noreferrer features
c80bff421f256620a63a732c36273ef0ccfa1f4b · 2026-05-19 21:25:49 -0700 · Steve Abrams
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Files touched
Diff
commit c80bff421f256620a63a732c36273ef0ccfa1f4b
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Tue May 19 21:25:49 2026 -0700
harden window.open instagram external opens with noopener,noreferrer features
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---
public/js/app.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/public/js/app.js b/public/js/app.js
index 5af48a8..3b2edab 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -460,7 +460,7 @@ function manualPublish() {
// Open Instagram
setTimeout(() => {
- window.open('https://www.instagram.com/', '_blank');
+ window.open('https://www.instagram.com/', '_blank', 'noopener,noreferrer');
toast('Instagram opened — paste your caption and upload the image!', 'info');
}, 500);
@@ -613,7 +613,7 @@ function closeIGModal() {
}
function igLoginStandard() {
closeIGModal();
- window.open('https://www.instagram.com/', '_blank');
+ window.open('https://www.instagram.com/', '_blank', 'noopener,noreferrer');
// Mark as standard-login connected
sessionStorage.setItem('ig_standard_login', '1');
const igEl = document.querySelector('.ig-status');
← ce200aa add noreferrer to external Google Sheets link (noopener+nore
·
back to SmokeShop
·
(newest)