diff --git a/config/defaults.js b/config/defaults.js index 86e23e16..fb87e566 100644 --- a/config/defaults.js +++ b/config/defaults.js @@ -15,6 +15,7 @@ const defaultConfig = { trayClickPlayPause: false, autoResetAppCache: false, resumeOnStart: true, + proxy: "", }, plugins: { // Enabled plugins diff --git a/index.js b/index.js index 7c79a1b6..82bb3320 100644 --- a/index.js +++ b/index.js @@ -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")();