diff --git a/app/features/conference/components/Conference.js b/app/features/conference/components/Conference.js index df60e4681..9e45d3443 100644 --- a/app/features/conference/components/Conference.js +++ b/app/features/conference/components/Conference.js @@ -230,7 +230,6 @@ class Conference extends Component { const options = { configOverwrite, - onload: this._onIframeLoad, parentNode: this._ref.current, roomName, sandbox: 'allow-scripts allow-same-origin allow-popups allow-forms' @@ -241,6 +240,11 @@ class Conference extends Component { ...urlParameters }); + // This event is fired really early, at the same time as 'ready', but has been + // around for longer. + // TODO: remove after a while. -saghul + this._api.on('browserSupport', this._onIframeLoad); + this._api.on('suspendDetected', this._onVideoConferenceEnded); this._api.on('readyToClose', this._onVideoConferenceEnded); this._api.on('videoConferenceJoined', @@ -323,25 +327,6 @@ class Conference extends Component { this._loadTimer = null; } - const frame = this._api.getIFrame(); - const mainApp = frame.contentWindow.document.getElementById('react'); - - if (!mainApp) { - console.warn('Main application not loaded'); - - this._navigateToHome( - - // $FlowFixMe - { - error: 'Loading error', - type: 'error' - }, - this._conference.room, - this._conference.serverURL); - - return; - } - this.setState({ isLoading: false });