diff --git a/script/popup.js b/script/popup.js index 4dbcb71a..30a7e8c4 100644 --- a/script/popup.js +++ b/script/popup.js @@ -23,5 +23,10 @@ document.querySelector('.no-thanks').addEventListener('click', function(event) { event.preventDefault(); document.getElementById('popup').style.display = 'none'; + localStorage.setItem("noThanksClicked", "true"); }); + + if (localStorage.getItem("noThanksClicked") === "true") { + document.getElementById('popup').style.visibility = 'hidden'; + } \ No newline at end of file