From 47fe71c1f1952d0b6054fcd1ebaec7bc53162a28 Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Tue, 14 Jun 2016 11:34:56 -0500 Subject: [PATCH] Fixes issue with ToolbarToggle.setAlwaysVisibleToolbar --- modules/UI/UI.js | 1 + modules/UI/toolbars/ToolbarToggler.js | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/UI/UI.js b/modules/UI/UI.js index 0319d02b7..bcfcac391 100644 --- a/modules/UI/UI.js +++ b/modules/UI/UI.js @@ -389,6 +389,7 @@ UI.start = function () { registerListeners(); + ToolbarToggler.init(); BottomToolbar.init(); FilmStrip.init(eventEmitter); diff --git a/modules/UI/toolbars/ToolbarToggler.js b/modules/UI/toolbars/ToolbarToggler.js index 2e476251a..313defda0 100644 --- a/modules/UI/toolbars/ToolbarToggler.js +++ b/modules/UI/toolbars/ToolbarToggler.js @@ -10,7 +10,7 @@ let toolbarTimeout = interfaceConfig.INITIAL_TOOLBAR_TIMEOUT; /** * If true the toolbar will be always displayed */ -let alwaysVisibleToolbar = (config.alwaysVisibleToolbar === true); +let alwaysVisibleToolbar = false; function showDesktopSharingButton() { if (APP.conference.isDesktopSharingEnabled && @@ -44,6 +44,12 @@ function hideToolbar() { } const ToolbarToggler = { + /** + * Initializes the ToolbarToggler + */ + init() { + alwaysVisibleToolbar = (config.alwaysVisibleToolbar === true); + }, /** * Sets the value of alwaysVisibleToolbar variable. * @param value {boolean} the new value of alwaysVisibleToolbar variable