Skip to content

Commit

Permalink
Remove banner after click
Browse files Browse the repository at this point in the history
  • Loading branch information
nayakrujul authored Nov 2, 2024
1 parent 938dfd9 commit 3b2b6a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/cookies.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if (!get_cookies()["cookiesAllowed"]) {
if (!get_cookies()[BANNER_COOKIE]) {
document.body.appendChild(main_banner);
document.getElementById("dismiss-banner").addEventListener("click", remove_main_banner);
document.getElementById("logo-button").addEventListener("click", () => window.open("/new-logo/"));
document.getElementById("logo-button").addEventListener("click", () => remove_main_banner() && window.open("/new-logo/"));
} else {
document.cookie = BANNER_COOKIE + "=1;domain=vtp6.rujulnayak.com;path=/;max-age=31536000";
}
Expand Down

0 comments on commit 3b2b6a2

Please sign in to comment.