Fixes issue with ToolbarToggle.setAlwaysVisibleToolbar

This commit is contained in:
hristoterezov 2016-06-14 11:34:56 -05:00
parent c5eebcda98
commit 47fe71c1f1
2 changed files with 8 additions and 1 deletions

View File

@ -389,6 +389,7 @@ UI.start = function () {
registerListeners();
ToolbarToggler.init();
BottomToolbar.init();
FilmStrip.init(eventEmitter);

View File

@ -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