diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /browser/components/newtab/lib/TopSitesFeed.sys.mjs | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-upstream/125.0.1.tar.xz firefox-upstream/125.0.1.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/components/newtab/lib/TopSitesFeed.sys.mjs')
-rw-r--r-- | browser/components/newtab/lib/TopSitesFeed.sys.mjs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/browser/components/newtab/lib/TopSitesFeed.sys.mjs b/browser/components/newtab/lib/TopSitesFeed.sys.mjs index db21411fdd..796211085b 100644 --- a/browser/components/newtab/lib/TopSitesFeed.sys.mjs +++ b/browser/components/newtab/lib/TopSitesFeed.sys.mjs @@ -165,7 +165,7 @@ class TopSitesTelemetry { {}, ...Object.entries(this.allSponsoredTiles) .filter( - ([k, v]) => + ([, v]) => v.display_fail_reason === null || v.display_fail_reason === undefined ) @@ -196,8 +196,8 @@ class TopSitesTelemetry { clearTilesForProvider(provider) { Object.entries(this.allSponsoredTiles) - .filter(([k, v]) => k.startsWith(provider)) - .map(([k, v]) => delete this.allSponsoredTiles[k]); + .filter(([k]) => k.startsWith(provider)) + .map(([k]) => delete this.allSponsoredTiles[k]); } _getAdvertiser(tile) { |