mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
feat: split openExternal into sync and async (#16176)
* feat: split openExternal into sync and async * v8::Locker => mate::Locker * fix: enter js env when resolving promise
This commit is contained in:
@@ -639,7 +639,7 @@ app.on('web-contents-created', (event, contents) => {
|
||||
// to open this event's url in the default browser.
|
||||
event.preventDefault()
|
||||
|
||||
shell.openExternal(navigationUrl)
|
||||
shell.openExternalSync(navigationUrl)
|
||||
})
|
||||
})
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user