Disable screensharing button if user refuses rights
If the user refuses the popup to screen-share, we should switch back the button to gray. Closes #1179
This commit is contained in:
parent
f16514db21
commit
6af9b5d0fc
1 changed files with 1 additions and 0 deletions
|
@ -169,6 +169,7 @@ export const screenSharingLocalStreamStore = derived<Readable<MediaStreamConstra
|
||||||
return;
|
return;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
currentStream = null;
|
currentStream = null;
|
||||||
|
requestedScreenSharingState.disableScreenSharing();
|
||||||
console.info("Error. Unable to share screen.", e);
|
console.info("Error. Unable to share screen.", e);
|
||||||
set({
|
set({
|
||||||
type: 'error',
|
type: 'error',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue