diff options
-rw-r--r-- | src/index.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js index e39434a3b..66ae3ad00 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -53,6 +53,13 @@ import userAgent from './helpers/userAgent-helpers'; | |||
53 | 53 | ||
54 | const debug = require('debug')('Ferdi:App'); | 54 | const debug = require('debug')('Ferdi:App'); |
55 | 55 | ||
56 | // From Electron 9 onwards, app.allowRendererProcessReuse = true by default. This causes the app to crash on Windows due to the | ||
57 | // Electron Windows Notification API crashing. Setting this to false fixes the issue until the electron team fixes the notification bug | ||
58 | // More Info - https://github.com/electron/electron/issues/18397 | ||
59 | if (isWindows) { | ||
60 | app.allowRendererProcessReuse = false; | ||
61 | } | ||
62 | |||
56 | // Globally set useragent to fix user agent override in service workers | 63 | // Globally set useragent to fix user agent override in service workers |
57 | debug('Set userAgent to ', userAgent()); | 64 | debug('Set userAgent to ', userAgent()); |
58 | app.userAgentFallback = userAgent(); | 65 | app.userAgentFallback = userAgent(); |
@@ -326,7 +333,7 @@ const createWindow = () => { | |||
326 | 333 | ||
327 | app.mainWindow = mainWindow; | 334 | app.mainWindow = mainWindow; |
328 | app.isMaximized = mainWindow.isMaximized(); | 335 | app.isMaximized = mainWindow.isMaximized(); |
329 | 336 | ||
330 | mainWindow.webContents.on('new-window', (e, url) => { | 337 | mainWindow.webContents.on('new-window', (e, url) => { |
331 | debug('Open url', url); | 338 | debug('Open url', url); |
332 | e.preventDefault(); | 339 | e.preventDefault(); |