From 49b0799a482a7b5c856b3711b3cc0840a48bb722 Mon Sep 17 00:00:00 2001 From: Mehmet Sagir Date: Fri, 6 Oct 2023 14:08:19 +0000 Subject: [PATCH] chore: show banner every js_session --- interface.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/interface.php b/interface.php index 5c1b5b8..c701b0c 100644 --- a/interface.php +++ b/interface.php @@ -266,7 +266,7 @@ function load(element, filename){ message.contentEditable = true; }) */ - if(localStorage.getItem("truth")){ + if(sessionStorage.getItem("truth")){ document.querySelector("#truth")?.remove(); } @@ -467,12 +467,12 @@ function copyToInput(selector) { resize(document.querySelector(".input-field")); } - if(localStorage.getItem("data-protection")){ + if(sessionStorage.getItem("data-protection")){ document.querySelector("#data-protection").remove(); } function modalClick(element){ - localStorage.setItem(element.id, "true") + sessionStorage.setItem(element.id, "true") element.remove(); }