diff options
author | 2020-10-15 22:24:03 +0100 | |
---|---|---|
committer | 2020-10-15 22:24:03 +0100 | |
commit | dfae9569dd279d25b245b0d7a9ae74af6ac48ee0 (patch) | |
tree | 46c9aacbdd1e0b0e08bab2a6d58122f3d66f57a0 | |
parent | Flash TaskBar (Windows) / Bounce Dock (Mac) on New Message (#1020) (diff) | |
download | ferdium-app-dfae9569dd279d25b245b0d7a9ae74af6ac48ee0.tar.gz ferdium-app-dfae9569dd279d25b245b0d7a9ae74af6ac48ee0.tar.zst ferdium-app-dfae9569dd279d25b245b0d7a9ae74af6ac48ee0.zip |
Disable Chromium's poor MPRIS implementation (#1023)
-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. |