Skip to content

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

Fixes autoEnableDesktopSharing option.

damencho4228537390c1
diff --git a/app.js b/app.js
index f5e7855c9d..0223165b27 100644
--- a/app.js
+++ b/app.js
@@ -75,6 +75,10 @@ function init() {
var isUIReady = APP.UI.start();
if (isUIReady) {
APP.conference.init({roomName: buildRoomName()}).then(function () {
+ // init desktop before UI, in order to make sure
+ // autoEnableDesktopSharing works
+ APP.desktopsharing.init(JitsiMeetJS.isDesktopSharingEnabled());
+
APP.UI.initConference();
APP.UI.addListener(UIEvents.LANG_CHANGED, function (language) {
@@ -82,7 +86,6 @@ function init() {
APP.settings.setLanguage(language);
});
- APP.desktopsharing.init(JitsiMeetJS.isDesktopSharingEnabled());
APP.keyboardshortcut.init();
}).catch(function (err) {
console.error(err);