From a65e2e12aa3040614f6f1c5211311c947fd35ccb Mon Sep 17 00:00:00 2001 From: judemont Date: Sat, 3 Aug 2024 18:30:16 +0200 Subject: [PATCH] Refactor: Simplify 'DOMContentLoaded' event listener in page.js --- scripts/page.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/page.js b/scripts/page.js index 64e933c..3ee5257 100644 --- a/scripts/page.js +++ b/scripts/page.js @@ -25,10 +25,8 @@ ratingValues.forEach((value, index) => { // }); document.addEventListener("DOMContentLoaded", function () { - if (!localStorage.getItem("welcomePopup")) { - document.body.style.overflow = "hidden"; - openPopup("welcomePopup"); - } + document.body.style.overflow = "hidden"; + openPopup("welcomePopup"); }); getBann().then(function (result) {