diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/index.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js index 562d314dd..928a9744e 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -60,6 +60,8 @@ if (isWindows) { | |||
60 | app.allowRendererProcessReuse = false; | 60 | app.allowRendererProcessReuse = false; |
61 | } | 61 | } |
62 | 62 | ||
63 | |||
64 | |||
63 | // Globally set useragent to fix user agent override in service workers | 65 | // Globally set useragent to fix user agent override in service workers |
64 | debug('Set userAgent to ', userAgent()); | 66 | debug('Set userAgent to ', userAgent()); |
65 | app.userAgentFallback = userAgent(); | 67 | app.userAgentFallback = userAgent(); |
@@ -364,6 +366,9 @@ if (argv['auth-negotiate-delegate-whitelist']) { | |||
364 | app.commandLine.appendSwitch('auth-negotiate-delegate-whitelist', argv['auth-negotiate-delegate-whitelist']); | 366 | app.commandLine.appendSwitch('auth-negotiate-delegate-whitelist', argv['auth-negotiate-delegate-whitelist']); |
365 | } | 367 | } |
366 | 368 | ||
369 | // Disable Chromium's poor MPRIS implementation | ||
370 | app.commandLine.appendSwitch('disable-features', 'HardwareMediaKeyHandling,MediaSessionService'); | ||
371 | |||
367 | // This method will be called when Electron has finished | 372 | // This method will be called when Electron has finished |
368 | // initialization and is ready to create browser windows. | 373 | // initialization and is ready to create browser windows. |
369 | // Some APIs can only be used after this event occurs. | 374 | // Some APIs can only be used after this event occurs. |