mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
feat: make async webContents / <webview> methods return a Promise (#18792)
This commit is contained in:
committed by
Alexey Kuzmin
parent
632bbf948d
commit
deebde66f9
@@ -53,18 +53,15 @@ exports.syncMethods = new Set([
|
||||
'setZoomLevel'
|
||||
])
|
||||
|
||||
exports.asyncCallbackMethods = new Set([
|
||||
exports.asyncMethods = new Set([
|
||||
'capturePage',
|
||||
'executeJavaScript',
|
||||
'insertCSS',
|
||||
'insertText',
|
||||
'send',
|
||||
'sendInputEvent',
|
||||
'setLayoutZoomLevelLimits',
|
||||
'setVisualZoomLevelLimits',
|
||||
'print'
|
||||
])
|
||||
|
||||
exports.asyncPromiseMethods = new Set([
|
||||
'capturePage',
|
||||
'executeJavaScript',
|
||||
'print',
|
||||
'printToPDF'
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user