summaryrefslogtreecommitdiff
path: root/views/disable.js
diff options
context:
space:
mode:
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)