Impl of sys calls
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
const { shell, contextBridge } = require("electron")
|
||||
const { shell, contextBridge, ipcRenderer } = require("electron")
|
||||
|
||||
contextBridge.executeInMainWorld("system", {
|
||||
openInBrowser: (url) => shell.openExternal(url)
|
||||
openInBrowser: (url) => shell.openExternal(url),
|
||||
call: (method, args) => ipcRenderer.send("call", { method, args })
|
||||
})
|
||||
Reference in New Issue
Block a user