diff options
author | Stefan Malzner <stefan@adlk.io> | 2019-01-30 10:25:56 +0100 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2019-01-30 10:25:56 +0100 |
commit | c362b46b6c6b11d0e63b6b76a95e31c75f388cf9 (patch) | |
tree | 2a9452f0b839cc2efbaad9e2191854b9e0753477 /src/index.js | |
parent | Fix context menu (diff) | |
download | ferdium-app-c362b46b6c6b11d0e63b6b76a95e31c75f388cf9.tar.gz ferdium-app-c362b46b6c6b11d0e63b6b76a95e31c75f388cf9.tar.zst ferdium-app-c362b46b6c6b11d0e63b6b76a95e31c75f388cf9.zip |
Add node_integration (electron 5)
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js index 195e9e863..f34df8c17 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -161,6 +161,9 @@ const createWindow = () => { | |||
161 | titleBarStyle: isMac ? 'hidden' : '', | 161 | titleBarStyle: isMac ? 'hidden' : '', |
162 | frame: isLinux, | 162 | frame: isLinux, |
163 | backgroundColor: !settings.get('darkMode') ? '#3498db' : '#1E1E1E', | 163 | backgroundColor: !settings.get('darkMode') ? '#3498db' : '#1E1E1E', |
164 | webPreferences: { | ||
165 | nodeIntegration: true, | ||
166 | }, | ||
164 | }); | 167 | }); |
165 | 168 | ||
166 | // Initialize System Tray | 169 | // Initialize System Tray |