mirror of https://github.com/dani/vroom.git
Newer Firefox changed the error name when screensharing is not allowed
Update this so the screen sharing help modal dialog opens correctly
This commit is contained in:
parent
a975142f64
commit
9e93ce75d1
|
@ -2009,11 +2009,12 @@ function initVroom(room) {
|
|||
// This error usually means you have denied access (old flag way)
|
||||
// or you cancelled screen sharing (new extension way)
|
||||
// or you select no window (in Firefox)
|
||||
else if (err.name === 'PermissionDeniedError' && $.browser.mozilla){
|
||||
else if ((err.name === 'PermissionDeniedError' || err.name === 'SecurityError') && $.browser.mozilla){
|
||||
$('#firefoxShareScreenModal').modal('show');
|
||||
}
|
||||
else if (err.name === 'PERMISSION_DENIED' ||
|
||||
err.name === 'PermissionDeniedError' ||
|
||||
err.name === 'SecurityError' ||
|
||||
err.name === 'ConstraintNotSatisfiedError'){
|
||||
cantShare(localize('SCREEN_SHARING_CANCELLED'));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue