Skip to content

Commit

Permalink
Merge pull request #166 from GoogleChromeLabs/fix/prerendering-error
Browse files Browse the repository at this point in the history
Fix browseTopics pre-rendering error
  • Loading branch information
Sayed Taqui authored Oct 5, 2023
2 parents bae0fe5 + 2f91e35 commit 564d815
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/extension/src/contentScript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { CookieStore } from '../localStore';

(async () => {
if (
!document.prerendering &&
'browsingTopics' in document &&
document.featurePolicy &&
document.featurePolicy.allowsFeature('browsing-topics')
Expand Down

0 comments on commit 564d815

Please sign in to comment.