ENHANCEMENT: backgrounds are so overrated

This commit is contained in:
Jeroen De Meerleer 2021-08-05 16:18:16 +02:00
parent 9d80ffe3d3
commit b65ae0ab71
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -2,7 +2,6 @@ document.addEventListener("readystatechange", event => {
if(event.target.readyState === 'complete') {
initOverflow();
initExternalLinks();
initBackground();
}
});
@ -21,8 +20,4 @@ function initExternalLinks() {
})
}
function initBackground() {
let text = document.querySelector('.background .background-content').innerHTML;
document.querySelector('.background .background-content').innerHTML = text + text + text;
}
const isExternalURL = (url) => new URL(url).origin !== location.origin;