diff options
Diffstat (limited to 'recipes/msteams/index.js')
-rw-r--r-- | recipes/msteams/index.js | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/recipes/msteams/index.js b/recipes/msteams/index.js index c8cdc38..ea86196 100644 --- a/recipes/msteams/index.js +++ b/recipes/msteams/index.js | |||
@@ -1,18 +1,21 @@ | |||
1 | module.exports = Ferdium => class MicrosoftTeams extends Ferdium { | 1 | module.exports = Ferdium => |
2 | overrideUserAgent() { | 2 | class MicrosoftTeams extends Ferdium { |
3 | return window.navigator.userAgent.replace(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '').trim(); | 3 | overrideUserAgent() { |
4 | } | 4 | return window.navigator.userAgent |
5 | .replaceAll(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '') | ||
6 | .trim(); | ||
7 | } | ||
5 | 8 | ||
6 | // TODO: Commenting out since this can expose the user to a MITM attack. Before this can be turned on, we will need to put in some safeguards/warnings that the user can explicitly accept the security ramifications | 9 | // TODO: Commenting out since this can expose the user to a MITM attack. Before this can be turned on, we will need to put in some safeguards/warnings that the user can explicitly accept the security ramifications |
7 | // // https://docs.microsoft.com/en-us/microsoftteams/troubleshoot/teams-sign-in/sign-in-loop#resolution | 10 | // // https://docs.microsoft.com/en-us/microsoftteams/troubleshoot/teams-sign-in/sign-in-loop#resolution |
8 | // knownCertificateHosts() { | 11 | // knownCertificateHosts() { |
9 | // return [ | 12 | // return [ |
10 | // 'microsoft.com', | 13 | // 'microsoft.com', |
11 | // 'microsoftonline.com', | 14 | // 'microsoftonline.com', |
12 | // 'teams.skype.com', | 15 | // 'teams.skype.com', |
13 | // 'teams.microsoft.com', | 16 | // 'teams.microsoft.com', |
14 | // 'sfbassets.com', | 17 | // 'sfbassets.com', |
15 | // 'skypeforbusiness.com', | 18 | // 'skypeforbusiness.com', |
16 | // ]; | 19 | // ]; |
17 | // }; | 20 | // }; |
18 | }; | 21 | }; |