File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ class PageFour extends React.Component {
84
84
85
85
componentDidMount ( ) {
86
86
this . updateWindowDimensions ( ) ;
87
- window . addEventListener ( 'resize' , this . updateWindowDimensions ) ;
87
+ this . refDom . addEventListener ( 'resize' , this . updateWindowDimensions ) ;
88
88
// this.data = {
89
89
// action: 'loadfile'
90
90
// }
@@ -94,7 +94,8 @@ class PageFour extends React.Component {
94
94
}
95
95
96
96
receiveMessageFromPlugin ( event ) {
97
- console . log ( 'iframe is working:' , event . data ) ;
97
+ if ( event . origin != "http://localhost:3000" ) {
98
+ console . log ( 'iframe is working:' , event . origin ) ;
98
99
let contentObject = { } ;
99
100
100
101
const content = localStorage . getItem ( 'fileContent' ) ;
@@ -114,7 +115,7 @@ class PageFour extends React.Component {
114
115
} )
115
116
this . setState ( { drawSprites : allStages [ 0 ] } )
116
117
}
117
-
118
+ }
118
119
}
119
120
120
121
highlight ( index ) {
Original file line number Diff line number Diff line change 10
10
11
11
.left {
12
12
// flex-grow: 1;
13
- max- width : 300px ;
13
+ width : 300px ;
14
14
}
15
15
16
16
.left_upper {
29
29
30
30
.right {
31
31
// flex-grow: 1;
32
- width : 250 px ;
32
+ width : 220 px ;
33
33
}
34
34
35
35
.stage_item {
You can’t perform that action at this time.
0 commit comments