aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/msteams/index.js
blob: c8cdc38a65287b13c23f71847e6be47de577a3fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module.exports = Ferdium => class MicrosoftTeams extends Ferdium {
  overrideUserAgent() {
    return window.navigator.userAgent.replace(/(Ferdium|Electron)\/\S+ \([^)]+\)/g, '').trim();
  }

  // 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
  // // https://docs.microsoft.com/en-us/microsoftteams/troubleshoot/teams-sign-in/sign-in-loop#resolution
  // knownCertificateHosts() {
  //   return [
  //     'microsoft.com',
  //     'microsoftonline.com',
  //     'teams.skype.com',
  //     'teams.microsoft.com',
  //     'sfbassets.com',
  //     'skypeforbusiness.com',
  //   ];
  // };
};