This commit is contained in:
awex
2021-06-21 17:44:04 -04:00
parent 181de09fbe
commit 01d2fefae8
2 changed files with 12 additions and 2 deletions
+9 -2
View File
@@ -1,5 +1,4 @@
function checkparam() {
window.onLoad = function() {
const params = new URLSearchParams(window.location.search)
// console.log(params) Only uncomment this for testing purposes.
@@ -44,5 +43,13 @@ function checkparam() {
const ee = document.getElementById("easteregg")
ee.style.display = "block";
}
if (params.get('ref') === 'demi') {
window.location.replace("https://www.youtube.com/watch?v=dQw4w9WgXcQ")
}
}
}
window.addEventListener ?
window.addEventListener("load",checkparam,false)
:
window.attachEvent && window.attachEvent("onload",checkparam);