aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/msteams
diff options
context:
space:
mode:
authorLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-09-08 23:00:36 +0530
committerLibravatar GitHub <noreply@github.com>2021-09-08 23:00:36 +0530
commit1e6263d1af1de9059071456d743d126a8aebc0e9 (patch)
tree4512c804eb650e6eab7ecbdbe8eedfc2f737f7ce /recipes/msteams
parentrefactor: use the exposed methods for session handling from the main repo (diff)
downloadferdium-recipes-1e6263d1af1de9059071456d743d126a8aebc0e9.tar.gz
ferdium-recipes-1e6263d1af1de9059071456d743d126a8aebc0e9.tar.zst
ferdium-recipes-1e6263d1af1de9059071456d743d126a8aebc0e9.zip
Expose 'known certificate hosts' in ms teams and outlook to try to fix certificate expiry issue (#675)
Diffstat (limited to 'recipes/msteams')
-rw-r--r--recipes/msteams/index.js26
-rw-r--r--recipes/msteams/package.json2
-rw-r--r--recipes/msteams/webview.js5
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
3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4 4
5window.addEventListener('beforeunload', async () => {
6 Ferdi.clearStorageData(['appcache', 'serviceworkers', 'cachestorage', 'websql', 'indexdb']);
7 Ferdi.releaseServiceWorkers();
8});
9
5module.exports = Ferdi => { 10module.exports = Ferdi => {
6 const getMessages = () => { 11 const getMessages = () => {
7 let messages = 0; 12 let messages = 0;