Skip to content

Commit

Permalink
Welcome popup local storage.
Browse files Browse the repository at this point in the history
  • Loading branch information
AsteroidusTv committed Aug 3, 2024
1 parent cd98336 commit 5b4a52d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@ ratingValues.forEach((value, index) => {
// });

document.addEventListener("DOMContentLoaded", function () {
document.body.style.overflow = "hidden";
openPopup("welcomePopup");
if (!localStorage.getItem("welcomePopup")) {
document.body.style.overflow = "hidden";
openPopup("welcomePopup");
}
});

getBann().then(function (result) {
if (result.banned) {
window.location.href = "banned.html";
Expand Down

0 comments on commit 5b4a52d

Please # to comment.