Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Use functions, do not re-implement them

Lyubomir Marinovd6b0f8d4c525
diff --git a/conference.js b/conference.js
index 736b231b83..f81cf22651 100644
--- a/conference.js
+++ b/conference.js
@@ -10,7 +10,7 @@ import Recorder from './modules/recorder/Recorder';
import mediaDeviceHelper from './modules/devices/mediaDeviceHelper';
-import {reportError} from './modules/util/helpers';
+import { reload, reportError } from './modules/util/helpers';
import UIEvents from './service/UI/UIEvents';
import UIUtil from './modules/UI/util/UIUtil';
@@ -417,7 +417,7 @@ class ConferenceConnector {
APP.UI.notifyMaxUsersLimitReached();
break;
case ConferenceErrors.INCOMPATIBLE_SERVER_VERSIONS:
- window.location.reload();
+ reload();
break;
default:
this._handleConferenceFailed(err, ...params);
@@ -1474,7 +1474,7 @@ export default {
APP.UI.addListener(UIEvents.LOGOUT, () => {
AuthHandler.logout(room).then(url => {
if (url) {
- window.location.href = url;
+ UIUtil.redirect(url);
} else {
this.hangup(true);
}