Skip to content

Commit

Permalink
also show error message on event
Browse files Browse the repository at this point in the history
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
  • Loading branch information
MorrisJobke committed Nov 18, 2016
1 parent 18641de commit 1d355d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/webrtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ var webrtc;
message = t('spreed', 'Access to microphone & camera was denied');
$('#emptycontent p').hide();
}
} else if(!OCA.SpreedMe.webrtc.capabilities.support) {
console.log('WebRTC not supported');

message = t('spreed', 'WebRTC is not supported in your browser :-/');
messageAdditional = t('spreed', 'Please use a different browser like Firefox or Chrome');
} else {
message = t('spreed', 'Error while accessing microphone & camera');
messageAdditional = error.message || error.name;
Expand Down

0 comments on commit 1d355d7

Please sign in to comment.