File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ class BuiltEmitter extends Component {
26
26
}
27
27
28
28
handleReady ( ) {
29
- document . dispatchEvent ( new Event ( 'ReactFeatureDidMount' ) ) ;
29
+ document . dispatchEvent ( new window . Event ( 'ReactFeatureDidMount' ) ) ;
30
30
}
31
31
32
32
render ( ) {
@@ -54,7 +54,7 @@ class App extends Component {
54
54
}
55
55
56
56
componentDidMount ( ) {
57
- const feature = location . hash . slice ( 1 ) ;
57
+ const feature = window . location . hash . slice ( 1 ) ;
58
58
switch ( feature ) {
59
59
case 'array-destructuring' :
60
60
import (
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import React from 'react';
11
11
import aFileWithoutExt from './assets/aFileWithoutExt' ;
12
12
13
13
const text = aFileWithoutExt . includes ( 'base64' )
14
- ? atob ( aFileWithoutExt . split ( 'base64,' ) [ 1 ] ) . trim ( )
14
+ ? window . atob ( aFileWithoutExt . split ( 'base64,' ) [ 1 ] ) . trim ( )
15
15
: aFileWithoutExt ;
16
16
17
17
export default ( ) => (
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import React from 'react';
11
11
import aFileWithExtUnknown from './assets/aFileWithExt.unknown' ;
12
12
13
13
const text = aFileWithExtUnknown . includes ( 'base64' )
14
- ? atob ( aFileWithExtUnknown . split ( 'base64,' ) [ 1 ] ) . trim ( )
14
+ ? window . atob ( aFileWithExtUnknown . split ( 'base64,' ) [ 1 ] ) . trim ( )
15
15
: aFileWithExtUnknown ;
16
16
17
17
export default ( ) => (
You can’t perform that action at this time.
0 commit comments