File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ class PageFour extends React.Component {
52
52
// in this class needs to bind like this:
53
53
this . handleOnClick = this . handleOnClick . bind ( this ) ;
54
54
this . updateWindowDimensions = this . updateWindowDimensions . bind ( this ) ;
55
+ this . receiveMessageFromPlugin = this . receiveMessageFromPlugin . bind ( this ) ;
55
56
}
56
57
57
58
updateWindowDimensions ( ) {
@@ -84,10 +85,11 @@ class PageFour extends React.Component {
84
85
componentDidMount ( ) {
85
86
this . updateWindowDimensions ( ) ;
86
87
window . addEventListener ( 'resize' , this . updateWindowDimensions ) ;
87
- this . data = {
88
- action : 'loadfile'
89
- }
90
- window . addEventListener ( "message" , this . receiveMessageFromPlugin , false )
88
+ // this.data = {
89
+ // action: 'loadfile'
90
+ // }
91
+ // window.parent && window.parent.postMessage(this.data, '*')
92
+ // window.addEventListener("message", this.receiveMessageFromPlugin, false)
91
93
92
94
}
93
95
@@ -410,6 +412,7 @@ class PageFour extends React.Component {
410
412
clearInterval ( this . handlerPlay ) ;
411
413
}
412
414
this . refDom . removeEventListener ( 'resize' , this . updateWindowDimensions ) ;
415
+ // window.removeEventListener("message", this.receiveMessageFromPlugin, false);
413
416
}
414
417
415
418
render ( ) {
You can’t perform that action at this time.
0 commit comments