diff options
Diffstat (limited to 'recipes/msteams')
-rw-r--r-- | recipes/msteams/index.js | 26 | ||||
-rw-r--r-- | recipes/msteams/package.json | 2 | ||||
-rw-r--r-- | recipes/msteams/webview.js | 5 |
3 files changed, 32 insertions, 1 deletions
diff --git a/recipes/msteams/index.js b/recipes/msteams/index.js index d1bd721..e04254f 100644 --- a/recipes/msteams/index.js +++ b/recipes/msteams/index.js | |||
@@ -2,4 +2,30 @@ module.exports = Ferdi => class MicrosoftTeams extends Ferdi { | |||
2 | overrideUserAgent() { | 2 | overrideUserAgent() { |
3 | return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(); | 3 | return window.navigator.userAgent.replace(/(Ferdi|Electron)\/\S+ \([^)]+\)/g, '').trim(); |
4 | } | 4 | } |
5 | |||
6 | // https://docs.microsoft.com/en-us/microsoftteams/troubleshoot/teams-sign-in/sign-in-loop#resolution | ||
7 | // https://docs.microsoft.com/en-us/microsoft-365/enterprise/urls-and-ip-address-ranges?view=o365-worldwide#skype-for-business-online-and-microsoft-teams | ||
8 | knownCertificateHosts() { | ||
9 | return [ | ||
10 | 'aka.ms', | ||
11 | 'aspnetcdn.com', | ||
12 | 'azure.net', | ||
13 | 'azureedge.net', | ||
14 | 'live.com', | ||
15 | 'microsoft.com', | ||
16 | 'microsoftonline.com', | ||
17 | 'msecnd.net', | ||
18 | 'msedge.net', | ||
19 | 'mstea.ms', | ||
20 | 'office.net', | ||
21 | 'okta.com', | ||
22 | 'sfbassets.com', | ||
23 | 'skype.com', | ||
24 | 'skypeassets.com', | ||
25 | 'skypeforbusiness.com', | ||
26 | 'tenor.com', | ||
27 | 'windows.com', | ||
28 | 'windows.net', | ||
29 | ]; | ||
30 | }; | ||
5 | }; | 31 | }; |
diff --git a/recipes/msteams/package.json b/recipes/msteams/package.json index c79276f..2350372 100644 --- a/recipes/msteams/package.json +++ b/recipes/msteams/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "msteams", | 2 | "id": "msteams", |
3 | "name": "Microsoft Teams", | 3 | "name": "Microsoft Teams", |
4 | "version": "3.1.1", | 4 | "version": "3.1.2", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "aliases": [ | 6 | "aliases": [ |
7 | "teamsChat" | 7 | "teamsChat" |
diff --git a/recipes/msteams/webview.js b/recipes/msteams/webview.js index bf25562..786cd9b 100644 --- a/recipes/msteams/webview.js +++ b/recipes/msteams/webview.js | |||
@@ -2,6 +2,11 @@ const _path = _interopRequireDefault(require('path')); | |||
2 | 2 | ||
3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | 3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
4 | 4 | ||
5 | window.addEventListener('beforeunload', async () => { | ||
6 | Ferdi.clearStorageData(['appcache', 'serviceworkers', 'cachestorage', 'websql', 'indexdb']); | ||
7 | Ferdi.releaseServiceWorkers(); | ||
8 | }); | ||
9 | |||
5 | module.exports = Ferdi => { | 10 | module.exports = Ferdi => { |
6 | const getMessages = () => { | 11 | const getMessages = () => { |
7 | let messages = 0; | 12 | let messages = 0; |