aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-09-01 22:35:43 +0200
committerVendicated <vendicated@riseup.net>2022-09-01 22:35:43 +0200
commitd4eadf9348d480cd204a5e1ff440fd26db20bb8e (patch)
tree60c29e59be7079dea936345c5c64f43eb304512c /src
parent9951e0bcc51cc8eabfbbce81e4671f94fd433513 (diff)
downloadVencord-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.ts1
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;