Skip to content

Commit

Permalink
Update cookies-eu-banner.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaBeiyan committed Nov 25, 2024
1 parent 19d4f1a commit 4214e04
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions themes/mtfwiki-modified/assets/cookies-eu-banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ SOFTWARE.
// Do nothing if it is a bot
// If DoNotTrack is activated, do nothing too
if (isBot || !isToTrack || this.hasConsent() === false) {
this.removeBanner(0);
isShow = false;
}

Expand Down Expand Up @@ -137,12 +136,6 @@ SOFTWARE.
if (acceptButton) acceptButton.style.visibility = isShow ? "visible" : "hidden";
banner.style.display = "block";

if (moreLink) {
addClickListener(moreLink, function () {
_this.deleteCookie(_this.cookieName);
});
}

if (acceptButton) {
addClickListener(acceptButton, function () {
removeBanner();
Expand Down Expand Up @@ -266,7 +259,6 @@ SOFTWARE.
removeBanner: function (wait) {
var getElementById = document.getElementById.bind(document);
var banner = getElementById("cookies-eu-banner");
banner.classList.add("cookies-eu-banner--before-remove");
setTimeout(function () {
if (banner && banner.parentNode) {
banner.className = "cookies-eu-banner-removed";
Expand Down

0 comments on commit 4214e04

Please sign in to comment.