From e0c8b6b3c0ea49e784e7bff83897332baf09aa61 Mon Sep 17 00:00:00 2001 From: Matthias Herzog <37505324+kegato@users.noreply.github.com> Date: Mon, 8 Jul 2019 20:50:13 +0200 Subject: [PATCH] fix welcome page title fixes #4273 --- modules/UI/UI.js | 4 ---- react/features/conference/components/web/Conference.js | 2 ++ react/features/welcome/components/WelcomePage.web.js | 1 + 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/UI/UI.js b/modules/UI/UI.js index 1af849351..e9b2df065 100644 --- a/modules/UI/UI.js +++ b/modules/UI/UI.js @@ -156,8 +156,6 @@ UI.getSharedVideoManager = function() { * established, false - otherwise (for example in the case of welcome page) */ UI.start = function() { - document.title = interfaceConfig.APP_NAME; - // Set the defaults for prompt dialogs. $.prompt.setDefaults({ persistent: false }); @@ -189,8 +187,6 @@ UI.start = function() { APP.store.dispatch(setNotificationsEnabled(false)); UI.messageHandler.enablePopups(false); } - - document.title = interfaceConfig.APP_NAME; }; /** diff --git a/react/features/conference/components/web/Conference.js b/react/features/conference/components/web/Conference.js index 36fd1cdba..28698a4d6 100644 --- a/react/features/conference/components/web/Conference.js +++ b/react/features/conference/components/web/Conference.js @@ -124,6 +124,8 @@ class Conference extends AbstractConference { * @inheritdoc */ componentDidMount() { + document.title = interfaceConfig.APP_NAME; + const { configLocation } = config; if (configLocation) { diff --git a/react/features/welcome/components/WelcomePage.web.js b/react/features/welcome/components/WelcomePage.web.js index b6cc6212e..032800074 100644 --- a/react/features/welcome/components/WelcomePage.web.js +++ b/react/features/welcome/components/WelcomePage.web.js @@ -80,6 +80,7 @@ class WelcomePage extends AbstractWelcomePage { */ componentDidMount() { document.body.classList.add('welcome-page'); + document.title = interfaceConfig.APP_NAME; if (this.state.generateRoomnames) { this._updateRoomname();