Merge pull request #1181 from thecodingmachine/disable_screensharing_button_on_error
Disable screensharing button if user refuses rights
This commit is contained in:
commit
9f9584633c
@ -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…
Reference in New Issue
Block a user