aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Bennett <hello@vantezzen.io>2020-07-19 20:49:25 +0200
committerLibravatar GitHub <noreply@github.com>2020-07-19 20:49:25 +0200
commitfdcaab8f3670af1d73b9ee8b9d1907b5244ce276 (patch)
treee2267bc859e8c47fe71e8e7023dbc98ae3bc5b84
parentMerge pull request #230 from CrEaK/mattermost-fix (diff)
parentFixing unread-counter for office365 (diff)
downloadferdium-recipes-fdcaab8f3670af1d73b9ee8b9d1907b5244ce276.tar.gz
ferdium-recipes-fdcaab8f3670af1d73b9ee8b9d1907b5244ce276.tar.zst
ferdium-recipes-fdcaab8f3670af1d73b9ee8b9d1907b5244ce276.zip
Merge pull request #229 from CrEaK/office365-fix
Fixing unread-counter for office365
-rw-r--r--all.json2
-rw-r--r--archives/office365-owa.tar.gzbin80804 -> 80804 bytes
-rw-r--r--uncompressed/office365-owa/package.json2
-rw-r--r--uncompressed/office365-owa/webview.js4
4 files changed, 4 insertions, 4 deletions
diff --git a/all.json b/all.json
index 43bf40f..acd85c1 100644
--- a/all.json
+++ b/all.json
@@ -697,7 +697,7 @@
697 "featured": false, 697 "featured": false,
698 "id": "office365-owa", 698 "id": "office365-owa",
699 "name": "Office 365 Outlook Web App", 699 "name": "Office 365 Outlook Web App",
700 "version": "1.1.0", 700 "version": "1.1.1",
701 "icons": { 701 "icons": {
702 "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/office365-owa/icon.png", 702 "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/office365-owa/icon.png",
703 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/office365-owa/icon.svg" 703 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/office365-owa/icon.svg"
diff --git a/archives/office365-owa.tar.gz b/archives/office365-owa.tar.gz
index 243ffe9..42fcdf7 100644
--- a/archives/office365-owa.tar.gz
+++ b/archives/office365-owa.tar.gz
Binary files differ
diff --git a/uncompressed/office365-owa/package.json b/uncompressed/office365-owa/package.json
index c68f5d0..1ffb2ee 100644
--- a/uncompressed/office365-owa/package.json
+++ b/uncompressed/office365-owa/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "office365-owa", 2 "id": "office365-owa",
3 "name": "Office 365 Outlook Web App", 3 "name": "Office 365 Outlook Web App",
4 "version": "1.1.0", 4 "version": "1.1.1",
5 "description": "Office 365 Outlook Web App", 5 "description": "Office 365 Outlook Web App",
6 "main": "index.js", 6 "main": "index.js",
7 "author": "Adam Birds <adam.birds@adbtechltd.co.uk>", 7 "author": "Adam Birds <adam.birds@adbtechltd.co.uk>",
diff --git a/uncompressed/office365-owa/webview.js b/uncompressed/office365-owa/webview.js
index e144c46..ae21e19 100644
--- a/uncompressed/office365-owa/webview.js
+++ b/uncompressed/office365-owa/webview.js
@@ -3,7 +3,7 @@
3module.exports = Franz => { 3module.exports = Franz => {
4 const getMessages = function getMessages() { 4 const getMessages = function getMessages() {
5 let unreadMail = 0; 5 let unreadMail = 0;
6 6
7 if (location.pathname.match(/\/owa/)) { 7 if (location.pathname.match(/\/owa/)) {
8 // classic app 8 // classic app
9 unreadMail = parseInt( 9 unreadMail = parseInt(
@@ -19,7 +19,7 @@ module.exports = Franz => {
19 return; 19 return;
20 } 20 }
21 21
22 unreadMail = [...folders.parentNode.children].reduce((count, child) => { 22 unreadMail = [...folders.parentNode.parentNode.children].reduce((count, child) => {
23 const unread = child.querySelector('.screenReaderOnly'); 23 const unread = child.querySelector('.screenReaderOnly');
24 return unread && unread.textContent === 'unread' 24 return unread && unread.textContent === 'unread'
25 ? count + parseInt(unread.previousSibling.textContent, 10) 25 ? count + parseInt(unread.previousSibling.textContent, 10)