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(
|
contextBridge.exposeInMainWorld(
|
||||||
"ipc",
|
"ipc",
|
||||||
{
|
{
|
||||||
exec: (channel, ...args) => {
|
exec: async (channel, ...args) => {
|
||||||
return ipcRenderer.invoke(channel, ...args)
|
return await ipcRenderer.invoke(channel, ...args)
|
||||||
},
|
},
|
||||||
send: (channel, args) => {
|
send: (channel, args) => {
|
||||||
ipcRenderer.send(channel, args)
|
ipcRenderer.send(channel, args)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user