Skip to content

Commit

Permalink
chore: show banner every js_session
Browse files Browse the repository at this point in the history
  • Loading branch information
PandorasActorMS committed Oct 6, 2023
1 parent f841243 commit 49b0799
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions interface.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ function load(element, filename){
message.contentEditable = true;
})
*/
if(localStorage.getItem("truth")){
if(sessionStorage.getItem("truth")){
document.querySelector("#truth")?.remove();
}

Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit 49b0799

Please sign in to comment.