summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2021-01-07 16:19:42 +0100
committerOskar Nyberg <oskar@mullvad.net>2021-01-26 09:06:54 +0100
commitf055d887eba76100033176512129ede48523a7d3 (patch)
tree0661c7c067256b21b5915f2c79c0d68b5d179bf2 /gui/src
parent420147939bcda37c7f1b0efa673326c59b96147b (diff)
downloadmullvadvpn-f055d887eba76100033176512129ede48523a7d3.tar.xz
mullvadvpn-f055d887eba76100033176512129ede48523a7d3.zip
Browserify preload script and enable sandbox
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/main/index.ts12
1 files changed, 8 insertions, 4 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index 56027141ec..00a93bf3c0 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -209,6 +209,10 @@ class ApplicationMain {
app.commandLine.appendSwitch('wm-window-animations-disabled');
}
+ if (process.platform !== 'linux') {
+ app.enableSandbox();
+ }
+
this.overrideAppPaths();
if (this.ensureSingleInstance()) {
@@ -1442,14 +1446,14 @@ class ApplicationMain {
transparent: !this.guiSettings.unpinnedWindow,
useContentSize: true,
webPreferences: {
- preload: path.join(__dirname, '../renderer/preload.js'),
+ preload: path.join(__dirname, '../renderer/preloadBundle.js'),
nodeIntegration: false,
nodeIntegrationInWorker: false,
nodeIntegrationInSubFrames: false,
- devTools: process.env.NODE_ENV === 'development',
- // TODO: Remove use of remote
- enableRemoteModule: true,
+ enableRemoteModule: false,
+ sandbox: process.platform !== 'linux',
spellcheck: false,
+ devTools: process.env.NODE_ENV === 'development',
},
};