Skip to content

Commit

Permalink
Merge pull request #393 from ikemo3/fix/option
Browse files Browse the repository at this point in the history
fix: 'block google news tab' not working
  • Loading branch information
ikemo3 authored Aug 14, 2022
2 parents d037315 + 6d73aa8 commit 009d11e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/entry/document_start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,11 @@ const observer = new MutationObserver((mutations) => {
}
} else if (GoogleNewsCard.isCandidate(node, documentURL)) {
if (gsbOptions !== null) {
const g = new GoogleNewsCard(node);
if (!blockElement(g, gsbOptions)) {
pendingGoogleNewsCardList.push(node);
if (GoogleNewsCard.isOptionallyEnabled(gsbOptions)) {
const g = new GoogleNewsCard(node);
if (!blockElement(g, gsbOptions)) {
pendingGoogleNewsCardList.push(node);
}
}
} else {
pendingGoogleNewsCardList.push(node);
Expand Down

0 comments on commit 009d11e

Please sign in to comment.