@@ -19,7 +19,6 @@ limitations under the License.
1919var React = require ( 'react' ) ;
2020var sdk = require ( 'matrix-react-sdk' ) ;
2121var MatrixClientPeg = require ( 'matrix-react-sdk/lib/MatrixClientPeg' ) ;
22- var dis = require ( 'matrix-react-sdk/lib/dispatcher' ) ;
2322
2423module . exports = React . createClass ( {
2524 displayName : 'IntegrationsManager' ,
@@ -32,13 +31,11 @@ module.exports = React.createClass({
3231 // XXX: keyboard shortcuts for managing dialogs should be done by the modal
3332 // dialog base class somehow, surely...
3433 componentDidMount : function ( ) {
35- this . dispatcherRef = dis . register ( this . onAction ) ;
3634 document . addEventListener ( "keydown" , this . onKeyDown ) ;
3735 } ,
3836
3937 componentWillUnmount : function ( ) {
4038 document . removeEventListener ( "keydown" , this . onKeyDown ) ;
41- dis . unregister ( this . dispatcherRef ) ;
4239 } ,
4340
4441 onKeyDown : function ( ev ) {
@@ -49,15 +46,11 @@ module.exports = React.createClass({
4946 }
5047 } ,
5148
52- onAction : function ( payload ) {
53- if ( payload . action === 'close_scalar' ) {
54- this . props . onFinished ( ) ;
55- }
56- } ,
57-
5849 render : function ( ) {
5950 return (
60- < iframe src = { this . props . src } > </ iframe >
51+ < div className = "mx_IntegrationsManager" >
52+ < iframe src = { this . props . src } > </ iframe >
53+ </ div >
6154 ) ;
6255 }
6356} ) ;
0 commit comments