BrowserWindow: Disable sandbox to fix electron>=21
This commit is contained in:
parent
9951e0bcc5
commit
d4eadf9348
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue