summaryrefslogtreecommitdiff
path: root/views/disable.js
diff options
context:
space:
mode:
authormetamuffin <yvchraiqi@protonmail.com>2022-06-07 15:44:01 +0200
committermetamuffin <yvchraiqi@protonmail.com>2022-06-07 15:44:01 +0200
commit60dd085449ac3d1e89f31b8845062c82889e6e2b (patch)
tree4076598932ad3cea3cd61768b989727b61ef78b9 /views/disable.js
parent7ee47e2fa0eff925c955a857cbd481a71e3d327b (diff)
downloadmetamuffin-website-60dd085449ac3d1e89f31b8845062c82889e6e2b.tar
metamuffin-website-60dd085449ac3d1e89f31b8845062c82889e6e2b.tar.bz2
metamuffin-website-60dd085449ac3d1e89f31b8845062c82889e6e2b.tar.zst
changed disable.js once again
Diffstat (limited to 'views/disable.js')
-rw-r--r--views/disable.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/views/disable.js b/views/disable.js
index 40b7f05..37f016c 100644
--- a/views/disable.js
+++ b/views/disable.js
@@ -1,9 +1,7 @@
-
+// SPDX-License-Identifier: AGPL-3.0-only
// This piece of javascript reminds you to disable javascript.
-
eval("") // make librejs block this
window.onload = () => {
- if (window.localStorage.getItem("blub")) return
hide(true)
const text = document.createElement("p")
const link = document.createElement("a")
@@ -11,7 +9,6 @@ window.onload = () => {
link.textContent = "Continue anyway"
link.href = "#"
link.addEventListener("click", () => {
- window.localStorage.setItem("blub", "yes")
text.remove()
hide(false)