diff options
Diffstat (limited to 'recipes/gmail')
-rw-r--r-- | recipes/gmail/index.js | 2 | ||||
-rw-r--r-- | recipes/gmail/package.json | 2 | ||||
-rw-r--r-- | recipes/gmail/webview.js | 12 |
3 files changed, 8 insertions, 8 deletions
diff --git a/recipes/gmail/index.js b/recipes/gmail/index.js index fe5d29b..dd41f72 100644 --- a/recipes/gmail/index.js +++ b/recipes/gmail/index.js | |||
@@ -1 +1 @@ | |||
module.exports = Ferdi => class Gmail extends Ferdi {}; | module.exports = Ferdium => Ferdium; | ||
diff --git a/recipes/gmail/package.json b/recipes/gmail/package.json index 9e9218f..dfbb834 100644 --- a/recipes/gmail/package.json +++ b/recipes/gmail/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "gmail", | 2 | "id": "gmail", |
3 | "name": "Gmail", | 3 | "name": "Gmail", |
4 | "version": "1.4.3", | 4 | "version": "1.5.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://mail.google.com" | 7 | "serviceURL": "https://mail.google.com" |
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 | ||
7 | module.exports = Ferdi => { | 7 | module.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 | }; |