diff options
author | Joas Schilling <coding@schilljs.com> | 2018-01-08 14:47:54 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-01-08 14:51:02 +0300 |
commit | 7fea2fb7f82ece90dc96106ce0a440de011ff97c (patch) | |
tree | c6459b1edbe8c3c583676d4086e8503053ac32eb /js/webrtc.js | |
parent | 4d319941fb5e31ee28c8b8ab9e545429dac34d5d (diff) |
Fix deprecated *-white icon
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'js/webrtc.js')
-rw-r--r-- | js/webrtc.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/js/webrtc.js b/js/webrtc.js index b94e05f76..97c98eec6 100644 --- a/js/webrtc.js +++ b/js/webrtc.js @@ -241,15 +241,15 @@ var spreedPeerConnectionTable = []; mediaIndicator.className = 'mediaIndicator'; var muteIndicator = document.createElement('button'); - muteIndicator.className = 'muteIndicator icon-audio-off-white audio-on'; + muteIndicator.className = 'muteIndicator icon-white icon-shadow icon-audio-off audio-on'; muteIndicator.disabled = true; var screenSharingIndicator = document.createElement('button'); - screenSharingIndicator.className = 'screensharingIndicator icon-screen-white screen-off'; + screenSharingIndicator.className = 'screensharingIndicator icon-white icon-shadow icon-screen screen-off'; screenSharingIndicator.setAttribute('data-original-title', t('spreed', 'Show screen')); var iceFailedIndicator = document.createElement('button'); - iceFailedIndicator.className = 'iceFailedIndicator icon-error-white not-failed'; + iceFailedIndicator.className = 'iceFailedIndicator icon-white icon-shadow icon-error not-failed'; iceFailedIndicator.disabled = true; $(screenSharingIndicator).tooltip({ @@ -956,10 +956,10 @@ var spreedPeerConnectionTable = []; } var $hideVideoButton = $('#hideVideo'); - if(OCA.SpreedMe.webrtc.webrtc.localStream.getVideoTracks().length < 1) { - $hideVideoButton.removeClass('video-disabled') - .addClass('no-video-available icon-video-off-white') - .attr('data-original-title', t('spreed', 'No Camera')); + if (OCA.SpreedMe.webrtc.webrtc.localStream.getVideoTracks().length === 0) { + $hideVideoButton.removeClass('video-disabled icon-video') + .addClass('no-video-available icon-video-off') + .attr('data-original-title', t('spreed', 'No Camera')); } }); } |