Fixes jshint warnings.
This commit is contained in:
parent
dff4666bc6
commit
fdf73a9b4e
|
@ -16,8 +16,10 @@ var interfaceConfig = {
|
||||||
APP_NAME: "Jitsi Meet",
|
APP_NAME: "Jitsi Meet",
|
||||||
INVITATION_POWERED_BY: true,
|
INVITATION_POWERED_BY: true,
|
||||||
ACTIVE_SPEAKER_AVATAR_SIZE: 100,
|
ACTIVE_SPEAKER_AVATAR_SIZE: 100,
|
||||||
TOOLBAR_BUTTONS: ['authentication', 'microphone', 'camera', 'desktop', 'recording', 'security', 'invite',
|
TOOLBAR_BUTTONS: ['authentication', 'microphone', 'camera', 'desktop',
|
||||||
'chat', 'prezi', 'etherpad', 'fullscreen', 'sip', 'dialpad', 'settings', 'hangup', 'filmstrip', 'contacts'],
|
'recording', 'security', 'invite', 'chat', 'prezi', 'etherpad',
|
||||||
|
'fullscreen', 'sip', 'dialpad', 'settings', 'hangup', 'filmstrip',
|
||||||
|
'contacts'],
|
||||||
/**
|
/**
|
||||||
* Whether to only show the filmstrip (and hide the toolbar).
|
* Whether to only show the filmstrip (and hide the toolbar).
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -6,7 +6,8 @@ var toolbarTimeoutObject,
|
||||||
UIUtil = require("../util/UIUtil");
|
UIUtil = require("../util/UIUtil");
|
||||||
|
|
||||||
function showDesktopSharingButton() {
|
function showDesktopSharingButton() {
|
||||||
if (APP.desktopsharing.isDesktopSharingEnabled() && UIUtil.isButtonEnabled('desktop')) {
|
if (APP.desktopsharing.isDesktopSharingEnabled() &&
|
||||||
|
UIUtil.isButtonEnabled('desktop')) {
|
||||||
$('#toolbar_button_desktopsharing').css({display: "inline-block"});
|
$('#toolbar_button_desktopsharing').css({display: "inline-block"});
|
||||||
} else {
|
} else {
|
||||||
$('#toolbar_button_desktopsharing').css({display: "none"});
|
$('#toolbar_button_desktopsharing').css({display: "none"});
|
||||||
|
|
|
@ -106,7 +106,9 @@ var UIUtil = module.exports = {
|
||||||
|
|
||||||
hideDisabledButtons: function (mappings) {
|
hideDisabledButtons: function (mappings) {
|
||||||
var selector = Object.keys(mappings)
|
var selector = Object.keys(mappings)
|
||||||
.map(function (buttonName) { return UIUtil.isButtonEnabled(buttonName) ? null : mappings[buttonName]; })
|
.map(function (buttonName) {
|
||||||
|
return UIUtil.isButtonEnabled(buttonName)
|
||||||
|
? null : mappings[buttonName]; })
|
||||||
.filter(function (item) { return item; })
|
.filter(function (item) { return item; })
|
||||||
.join(',');
|
.join(',');
|
||||||
$(selector).hide();
|
$(selector).hide();
|
||||||
|
|
Loading…
Reference in New Issue