mirror of
https://github.com/ragestudio/relic.git
synced 2025-06-09 10:34:18 +00:00
use async await for ipc.exec()
This commit is contained in:
parent
b660c4e458
commit
37daf2fc16
@ -31,8 +31,8 @@ if (process.contextIsolated) {
|
||||
contextBridge.exposeInMainWorld(
|
||||
"ipc",
|
||||
{
|
||||
exec: (channel, ...args) => {
|
||||
return ipcRenderer.invoke(channel, ...args)
|
||||
exec: async (channel, ...args) => {
|
||||
return await ipcRenderer.invoke(channel, ...args)
|
||||
},
|
||||
send: (channel, args) => {
|
||||
ipcRenderer.send(channel, args)
|
||||
|
Loading…
x
Reference in New Issue
Block a user