update embed script

This commit is contained in:
Simon Vieille 2023-05-21 17:05:16 +02:00
parent f0177ca596
commit 071a44ab05
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -7,5 +7,9 @@
window.addEventListener('DOMContentLoaded', () => {
window.document.querySelector('body').classList.add('is-embeded')
window.document.querySelectorAll('.file-header a').forEach(function(a) {
a.setAttribute('target', '_blank')
})
})
})();