5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-25 17:36:21 +00:00
panel/app/javascript/etc/external_links.js

7 lines
207 B
JavaScript
Raw Permalink Normal View History

document.addEventListener('turbolinks:load', () => {
document.querySelectorAll("a[href^='http://'],a[href^='https://'],a[href^='//']").forEach(a => {
a.rel = "noopener"
a.target = "_blank"
})
})