← back to Blockprintedwallpaper
Add noopener,noreferrer to cross-site window.open
d914b636c43b9a6c2e0295d580d42b0864066096 · 2026-06-01 07:20:30 -0700 · Steve
Files touched
Diff
commit d914b636c43b9a6c2e0295d580d42b0864066096
Author: Steve <steve@designerwallcoverings.com>
Date: Mon Jun 1 07:20:30 2026 -0700
Add noopener,noreferrer to cross-site window.open
---
public/index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/index.html b/public/index.html
index dc3d112..804de34 100644
--- a/public/index.html
+++ b/public/index.html
@@ -554,7 +554,7 @@ textarea:focus-visible,
const isCurrent = n.dataset.slug === SLUG;
n.querySelector('circle').setAttribute('fill-opacity', isCurrent ? '1' : '0.55');
});
- n.addEventListener('click', () => window.open('https://' + n.dataset.slug + '.com', '_blank'));
+ n.addEventListener('click', () => window.open('https://' + n.dataset.slug + '.com', '_blank', 'noopener,noreferrer'));
});
})();
</script>
← e2f0d8b fix(niche-filter): add 'hand block' and 'hand printed' to NI
·
back to Blockprintedwallpaper
·
Redirect old .html page URLs to clean extension-less routes 919dd65 →