aboutsummaryrefslogtreecommitdiff
path: root/src/patcher.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/patcher.ts')
-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;