Update electron to 30.0.0

This commit is contained in:
Fedor Indutny 2024-04-17 02:03:06 +02:00 committed by GitHub
commit cba88e6e45
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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')