Skip to content

Commit

Permalink
Refactor: Simplify 'DOMContentLoaded' event listener in page.js
Browse files Browse the repository at this point in the history
  • Loading branch information
judemont committed Aug 3, 2024
1 parent 01a4070 commit a65e2e1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a65e2e1

Please # to comment.