1
Fork 0

Prevent the Unignore All button from always being added.

This commit is contained in:
Bauke 2023-12-06 14:14:00 +01:00
parent 836f4d9200
commit 9059abf853
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@ function addUnignoreAllButton(): boolean {
// Only add the button when we're on the ignore list page and the ignore list // Only add the button when we're on the ignore list page and the ignore list
// isn't empty. // isn't empty.
if ( if (
window.location.pathname !== "/ignored_topics" && window.location.pathname !== "/ignored_topics" ||
document.querySelector("main > .empty") === null document.querySelector("main > .empty") !== null
) { ) {
return false; return false;
} }