Skip to content

Commit

Permalink
Merge pull request jitsi#717 from tsareg/error_types
Browse files Browse the repository at this point in the history
Expose JitsiTrackError through JitsiMeetJS.errorTypes.JitsiTrackError
  • Loading branch information
hristoterezov authored Jul 6, 2016
2 parents 6447514 + 60c2ee4 commit b7ad6b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/UI/UI.js
Original file line number Diff line number Diff line change
Expand Up @@ -1210,9 +1210,9 @@ UI.showExtensionRequiredDialog = function (url) {
UI.showDeviceErrorDialog = function (micError, cameraError) {
let localStoragePropName = "doNotShowErrorAgain";
let isMicJitsiTrackErrorAndHasName = micError && micError.name &&
micError instanceof JitsiMeetJS.JitsiTrackError;
micError instanceof JitsiMeetJS.errorTypes.JitsiTrackError;
let isCameraJitsiTrackErrorAndHasName = cameraError && cameraError.name &&
cameraError instanceof JitsiMeetJS.JitsiTrackError;
cameraError instanceof JitsiMeetJS.errorTypes.JitsiTrackError;
let showDoNotShowWarning = false;

if (micError && cameraError && isMicJitsiTrackErrorAndHasName &&
Expand Down

0 comments on commit b7ad6b6

Please sign in to comment.