aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/msteams/index.js
blob: ea861967ed45d4ce14208828e962f3cddaaa5f08 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module.exports = Ferdium =>
  class MicrosoftTeams extends Ferdium {
    overrideUserAgent() {
      return window.navigator.userAgent
        .replaceAll(/(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',
    //   ];
    // };
  };