Permissions: 'return callback(true)' instead of 'return true'
This commit is contained in:
parent
61d8a694b7
commit
3a2582a087
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ function _createPermissionHandler(userConfig) {
|
|||
return (webContents, permission, callback) => {
|
||||
// We default 'media' permission to false, but the user can override that
|
||||
if (permission === 'media' && userConfig.get('mediaPermissions')) {
|
||||
return true;
|
||||
return callback(true);
|
||||
}
|
||||
|
||||
if (PERMISSIONS[permission]) {
|
||||
|
|
Loading…
Reference in a new issue