refactor: merge ipcMainUtils.handle / handleSync (#17062)
This commit is contained in:
parent
848d16525f
commit
5a99ea4c46
5 changed files with 13 additions and 17 deletions
|
@ -103,7 +103,7 @@ ipcMainUtils.handle('ELECTRON_INSPECTOR_SELECT_FILE', function (event) {
|
|||
})
|
||||
})
|
||||
|
||||
ipcMainUtils.handleSync('ELECTRON_INSPECTOR_CONFIRM', function (event, message, title) {
|
||||
ipcMainUtils.handle('ELECTRON_INSPECTOR_CONFIRM', function (event, message, title) {
|
||||
return new Promise((resolve, reject) => {
|
||||
assertChromeDevTools(event.sender, 'window.confirm()')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue