mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Give user access to the URL that is attempting to be openExternal'ed
This commit is contained in:
committed by
Cheng Zhao
parent
39ec40b901
commit
98e9311669
@@ -293,6 +293,9 @@ win.webContents.session.setCertificateVerifyProc((request, callback) => {
|
||||
'pointerLock', 'fullscreen', 'openExternal'.
|
||||
* `callback` Function
|
||||
* `permissionGranted` Boolean - Allow or deny the permission.
|
||||
* `details` Object - Some properties are only available on certain permission types.
|
||||
* `url` String - The url of the `openExternal` request.
|
||||
* `scheme` String - The protocol scheme of the `openExternal` request.
|
||||
|
||||
Sets the handler which can be used to respond to permission requests for the `session`.
|
||||
Calling `callback(true)` will allow the permission and `callback(false)` will reject it.
|
||||
|
||||
Reference in New Issue
Block a user