Skip to content

Commit

Permalink
Merge pull request #178 from volovikariel/animation_bug
Browse files Browse the repository at this point in the history
Fix bug where showNoCookies animation played regardless of the current page
  • Loading branch information
Moustachauve authored May 19, 2024
2 parents 0d88685 + 222e48e commit d84c82f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions interface/popup/cookie-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,12 @@ import { CookieHandlerPopup } from './cookieHandlerPopup.js';
if (disableButtons) {
return;
}
// If on a different page (e.g: import page) - don't show the no-cookies message.
const pageTitle =
pageTitleContainer?.querySelector('h1')?.textContent ?? '';
if (pageTitle !== 'Cookie-Editor') {
return;
}
cookiesListHtml = null;
const html = document
.importNode(document.getElementById('tmp-empty').content, true)
Expand Down

0 comments on commit d84c82f

Please sign in to comment.