Prevent the Unignore All button from always being added.
This commit is contained in:
parent
836f4d9200
commit
9059abf853
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue