Fixes issue with ToolbarToggle.setAlwaysVisibleToolbar

pull/693/head
hristoterezov 9 years ago
parent c5eebcda98
commit 47fe71c1f1
  1. 1
      modules/UI/UI.js
  2. 8
      modules/UI/toolbars/ToolbarToggler.js

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

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

Loading…
Cancel
Save