Skip to content

Commit

Permalink
fix: Disable media key handling on Electron (#2395)
Browse files Browse the repository at this point in the history
* Update app.ts

* lint fix

Co-authored-by: Jean Brito <[email protected]>
  • Loading branch information
Troplo and jeanfbrito authored Nov 10, 2022
1 parent 85c6068 commit 06f7e7d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/main/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ export const performElectronStartup = (): void => {
app.setAppUserModelId('chat.rocket');

app.commandLine.appendSwitch('--autoplay-policy', 'no-user-gesture-required');
app.commandLine.appendSwitch(
'disable-features',
'HardwareMediaKeyHandling,MediaSessionService'
);

const args = process.argv.slice(app.isPackaged ? 1 : 2);

Expand Down

0 comments on commit 06f7e7d

Please sign in to comment.