Update electron to 30.0.0

This commit is contained in:
Fedor Indutny
2024-04-17 02:03:06 +02:00
committed by GitHub
parent bebdf818c3
commit cba88e6e45
9 changed files with 23 additions and 16 deletions

View File

@@ -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')