From d4eadf9348d480cd204a5e1ff440fd26db20bb8e Mon Sep 17 00:00:00 2001 From: Vendicated Date: Thu, 1 Sep 2022 22:35:43 +0200 Subject: BrowserWindow: Disable sandbox to fix electron>=21 --- src/patcher.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/patcher.ts b/src/patcher.ts index 7d3f821..8cd8678 100644 --- a/src/patcher.ts +++ b/src/patcher.ts @@ -11,6 +11,7 @@ class BrowserWindow extends electron.BrowserWindow { if (options?.webPreferences?.preload && options.title) { const original = options.webPreferences.preload; options.webPreferences.preload = join(__dirname, "preload.js"); + options.webPreferences.sandbox = false; process.env.DISCORD_PRELOAD = original; -- cgit