Enable process sandboxing (#1206)

This commit is contained in:
V
2025-12-24 15:30:18 +01:00
committed by GitHub
parent 82fb7a6a6d
commit 71bfcecbe6
10 changed files with 87 additions and 73 deletions
+2 -2
View File
@@ -4,8 +4,8 @@
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { ipcRenderer } from "electron";
import { IpcEvents, UpdaterIpcEvents } from "shared/IpcEvents";
import { ipcRenderer } from "electron/renderer";
import type { IpcEvents, UpdaterIpcEvents } from "shared/IpcEvents";
export function invoke<T = any>(event: IpcEvents | UpdaterIpcEvents, ...args: any[]) {
return ipcRenderer.invoke(event, ...args) as Promise<T>;