5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 02:16:21 +00:00
panel/app/assets/javascripts/external_links.js
f 6d3b2dac16 no filtrar información a direcciones externas
ni permitirles modificar la ventana de origen
2020-09-15 12:12:05 -03:00

6 lines
207 B
JavaScript

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