aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gmail/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/gmail/webview.js')
-rw-r--r--recipes/gmail/webview.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/recipes/gmail/webview.js b/recipes/gmail/webview.js
index f7fba84..be22b66 100644
--- a/recipes/gmail/webview.js
+++ b/recipes/gmail/webview.js
@@ -4,7 +4,7 @@ function _interopRequireDefault(obj) {
4 return obj && obj.__esModule ? obj : { default: obj }; 4 return obj && obj.__esModule ? obj : { default: obj };
5} 5}
6 6
7module.exports = Ferdi => { 7module.exports = Ferdium => {
8 // if the user is on gmail's landing page, go to the login page. 8 // if the user is on gmail's landing page, go to the login page.
9 if ( 9 if (
10 location.hostname == 'www.google.com' && 10 location.hostname == 'www.google.com' &&
@@ -25,17 +25,17 @@ module.exports = Ferdi => {
25 if (parentNodeOfParentNode) { 25 if (parentNodeOfParentNode) {
26 const unreadCounts = parentNodeOfParentNode.querySelectorAll('.bsU'); 26 const unreadCounts = parentNodeOfParentNode.querySelectorAll('.bsU');
27 if (unreadCounts.length > 0) { 27 if (unreadCounts.length > 0) {
28 count = Ferdi.safeParseInt(unreadCounts[0].textContent.replace(/[^\p{N}]/gu, '')); 28 count = Ferdium.safeParseInt(unreadCounts[0].textContent.replace(/[^\p{N}]/gu, ''));
29 } 29 }
30 } 30 }
31 } 31 }
32 } 32 }
33 33
34 // set Ferdi badge 34 // set Ferdium badge
35 Ferdi.setBadge(count); 35 Ferdium.setBadge(count);
36 }; 36 };
37 37
38 Ferdi.loop(getMessages); 38 Ferdium.loop(getMessages);
39 39
40 Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); 40 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
41}; 41};