refactor: merge ipcMainUtils.handle / handleSync (#17062)

This commit is contained in:
Milan Burda 2019-02-27 00:48:26 +01:00 committed by Samuel Attard
parent 848d16525f
commit 5a99ea4c46
5 changed files with 13 additions and 17 deletions

View file

@ -20,7 +20,7 @@ export function invoke<T> (command: string, ...args: any[]) {
}
export function invokeSync<T> (command: string, ...args: any[]): T {
const [ error, result ] = ipcRendererInternal.sendSync(command, ...args)
const [ error, result ] = ipcRendererInternal.sendSync(command, null, ...args)
if (error) {
throw errorUtils.deserialize(error)