summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <yvchraiqi@protonmail.com>2022-03-19 20:14:26 +0100
committermetamuffin <yvchraiqi@protonmail.com>2022-03-19 20:14:26 +0100
commit11e2cd680b12ebcfb4004c654f045951d908d4b7 (patch)
tree6389a577a263fdd868d156e09f8a8540b267aa41
parentee62e07740b7c046813207a3572203ee539f4d46 (diff)
downloadmetamuffin-website-11e2cd680b12ebcfb4004c654f045951d908d4b7.tar
metamuffin-website-11e2cd680b12ebcfb4004c654f045951d908d4b7.tar.bz2
metamuffin-website-11e2cd680b12ebcfb4004c654f045951d908d4b7.tar.zst
remember dismiss
-rw-r--r--views/disable.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/views/disable.js b/views/disable.js
index f00b6ea..40b7f05 100644
--- a/views/disable.js
+++ b/views/disable.js
@@ -3,6 +3,7 @@
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")
@@ -10,6 +11,7 @@ window.onload = () => {
link.textContent = "Continue anyway"
link.href = "#"
link.addEventListener("click", () => {
+ window.localStorage.setItem("blub", "yes")
text.remove()
hide(false)