Support proxy in advanced options

This commit is contained in:
TC
2021-04-03 12:20:48 +02:00
parent 2ab216effc
commit 61e7124516
2 changed files with 5 additions and 0 deletions

View File

@ -15,6 +15,7 @@ const defaultConfig = {
trayClickPlayPause: false,
autoResetAppCache: false,
resumeOnStart: true,
proxy: "",
},
plugins: {
// Enabled plugins

View File

@ -32,6 +32,10 @@ if (config.get("options.disableHardwareAcceleration")) {
app.disableHardwareAcceleration();
}
if (config.get("options.proxy")) {
app.commandLine.appendSwitch("proxy-server", config.get("options.proxy"));
}
// Adds debug features like hotkeys for triggering dev tools and reload
require("electron-debug")();