Skip to content

Commit baec55b

Browse files
authored
add "origin" to confusing-browser-globals
The short one-worded "origin" is likely to be used as variable. The page origin should be accessed via "window.origin" for clarity.
1 parent 6254386 commit baec55b

File tree

1 file changed

+1
-0
lines changed
  • packages/confusing-browser-globals

1 file changed

+1
-0
lines changed

packages/confusing-browser-globals/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ module.exports = [
4040
'open',
4141
'opener',
4242
'opera',
43+
'origin',
4344
'outerHeight',
4445
'outerWidth',
4546
'pageXOffset',

0 commit comments

Comments
 (0)