Skip to content

Commit 0c93998

Browse files
authored
prefer-global-this: Add navigation to windowSpecificAPIs (#2770)
1 parent 1d682a1 commit 0c93998

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rules/prefer-global-this.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ const windowSpecificAPIs = new Set([
6262
'open',
6363
'originAgentCluster',
6464
'postMessage',
65+
'navigation',
6566

6667
// Events commonly associated with "window"
6768
...[...windowSpecificEvents].map(event => `on${event}`),

0 commit comments

Comments
 (0)