Impl of sys calls

This commit is contained in:
2025-04-26 12:46:25 +02:00
parent 6b33a6cb3e
commit affae5b975
2 changed files with 16 additions and 3 deletions

View File

@@ -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 })
})