Skip to content

Commit 81196d1

Browse files
sidoshigaearon
authored andcommitted
Blacklist confusing global variables (facebook#2130)
* Blacklist confusing global variables * Blacklist globals * Fix kitchensink test to lint * Edit the list * Use no-restricted globals for this
1 parent 87d3d75 commit 81196d1

File tree

1 file changed

+1
-1
lines changed
  • fixtures/kitchensink/src

1 file changed

+1
-1
lines changed

fixtures/kitchensink/src/App.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class App extends Component {
5454
}
5555

5656
componentDidMount() {
57-
const feature = location.hash.slice(1);
57+
const feature = window.location.hash.slice(1);
5858
switch (feature) {
5959
case 'array-destructuring':
6060
import(

0 commit comments

Comments
 (0)