|
|
|
@ -129,6 +129,15 @@ if (!IS_VANILLA) {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
process.env.DATA_DIR = join(app.getPath("userData"), "..", "Vencord");
|
|
|
|
|
|
|
|
|
|
// Monkey patch commandLine to disable WidgetLayering: Fix DevTools context menus https://github.com/electron/electron/issues/38790
|
|
|
|
|
const originalAppend = app.commandLine.appendSwitch;
|
|
|
|
|
app.commandLine.appendSwitch = function (...args) {
|
|
|
|
|
if (args[0] === "disable-features" && !args[1]?.includes("WidgetLayering")) {
|
|
|
|
|
args[1] += ",WidgetLayering";
|
|
|
|
|
}
|
|
|
|
|
return originalAppend.apply(this, args);
|
|
|
|
|
};
|
|
|
|
|
} else {
|
|
|
|
|
console.log("[Vencord] Running in vanilla mode. Not loading Vencord");
|
|
|
|
|
}
|
|
|
|
|