diff options
author | Vendicated <vendicated@riseup.net> | 2022-09-01 22:35:43 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-09-01 22:35:43 +0200 |
commit | d4eadf9348d480cd204a5e1ff440fd26db20bb8e (patch) | |
tree | 60c29e59be7079dea936345c5c64f43eb304512c /src | |
parent | 9951e0bcc51cc8eabfbbce81e4671f94fd433513 (diff) | |
download | Vencord-d4eadf9348d480cd204a5e1ff440fd26db20bb8e.tar.gz Vencord-d4eadf9348d480cd204a5e1ff440fd26db20bb8e.tar.bz2 Vencord-d4eadf9348d480cd204a5e1ff440fd26db20bb8e.zip |
BrowserWindow: Disable sandbox to fix electron>=21
Diffstat (limited to 'src')
-rw-r--r-- | src/patcher.ts | 1 |
1 files changed, 1 insertions, 0 deletions
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; |