Skip to content

Commit

Permalink
Allow usage of arbitrary disable-features switch (#1028)
Browse files Browse the repository at this point in the history
* allow usage of arbitrary disable-features switch

* bump version to 1.3.24
  • Loading branch information
bfsgr authored Dec 12, 2023
1 parent f02846e commit 82f7d6d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,16 @@ const mainAppWindow = require('./mainAppWindow');

if (config.proxyServer) app.commandLine.appendSwitch('proxy-server', config.proxyServer);
app.commandLine.appendSwitch('auth-server-whitelist', config.authServerWhitelist);
app.commandLine.appendSwitch('disable-features', 'HardwareMediaKeyHandling');
app.commandLine.appendSwitch('enable-ntlm-v2', config.ntlmV2enabled);
app.commandLine.appendSwitch('try-supported-channel-layouts');

const disabledFeatures = app.commandLine.hasSwitch('disable-features') ? app.commandLine.getSwitchValue('disable-features').split(',') : ['HardwareMediaKeyHandling'];

if(!disabledFeatures.includes('HardwareMediaKeyHandling'))
disabledFeatures.push('HardwareMediaKeyHandling');

app.commandLine.appendSwitch('disable-features', disabledFeatures.join(','));

if (isMac) {
requestMediaAccess();

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "teams-for-linux",
"version": "1.3.23",
"version": "1.3.24",
"main": "app/index.js",
"description": "Unofficial client for Microsoft Teams for Linux",
"homepage": "https://github.com/IsmaelMartinez/teams-for-linux",
Expand Down

0 comments on commit 82f7d6d

Please sign in to comment.