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