Update electron to 30.0.0
This commit is contained in:
parent
bebdf818c3
commit
cba88e6e45
9 changed files with 23 additions and 16 deletions
|
@ -31,6 +31,12 @@ function _createPermissionHandler(
|
|||
// We default 'media' permission to false, but the user can override that for
|
||||
// the microphone and camera.
|
||||
if (permission === 'media') {
|
||||
// Pacifying typescript because it is always there for 'media' permission
|
||||
if (!('mediaTypes' in details)) {
|
||||
callback(false);
|
||||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
details.mediaTypes?.includes('audio') ||
|
||||
details.mediaTypes?.includes('video')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue