mirror of
https://github.com/electron/electron.git
synced 2026-01-10 16:08:06 -05: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:
@@ -245,7 +245,7 @@ const template = [
|
||||
submenu: [
|
||||
{
|
||||
label: 'Learn More',
|
||||
click () { require('electron').shell.openExternal('https://electronjs.org') }
|
||||
click () { require('electron').shell.openExternalSync('https://electronjs.org') }
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user