Permissions: 'return callback(true)' instead of 'return true'

pull/1/head
Scott Nonnenberg 7 years ago
parent 61d8a694b7
commit 3a2582a087

@ -20,7 +20,7 @@ function _createPermissionHandler(userConfig) {
return (webContents, permission, callback) => { return (webContents, permission, callback) => {
// We default 'media' permission to false, but the user can override that // We default 'media' permission to false, but the user can override that
if (permission === 'media' && userConfig.get('mediaPermissions')) { if (permission === 'media' && userConfig.get('mediaPermissions')) {
return true; return callback(true);
} }
if (PERMISSIONS[permission]) { if (PERMISSIONS[permission]) {

Loading…
Cancel
Save