diff options
Diffstat (limited to 'recipes/instagram')
-rw-r--r-- | recipes/instagram/package.json | 2 | ||||
-rw-r--r-- | recipes/instagram/webview.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/recipes/instagram/package.json b/recipes/instagram/package.json index 80391bc..8396da4 100644 --- a/recipes/instagram/package.json +++ b/recipes/instagram/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "instagram", | 2 | "id": "instagram", |
3 | "name": "Instagram", | 3 | "name": "Instagram", |
4 | "version": "2.2.0", | 4 | "version": "2.2.1", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://instagram.com/direct/inbox", | 7 | "serviceURL": "https://instagram.com/direct/inbox", |
diff --git a/recipes/instagram/webview.js b/recipes/instagram/webview.js index b6d9aa3..8db5852 100644 --- a/recipes/instagram/webview.js +++ b/recipes/instagram/webview.js | |||
@@ -5,7 +5,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de | |||
5 | module.exports = (Ferdi) => { | 5 | module.exports = (Ferdi) => { |
6 | const getMessages = function getMessages() { | 6 | const getMessages = function getMessages() { |
7 | const element = document.querySelector('a[href^="/direct/inbox"]'); | 7 | const element = document.querySelector('a[href^="/direct/inbox"]'); |
8 | Ferdi.setBadge(element ? parseInt(element.innerText, 10) : 0); | 8 | Ferdi.setBadge(element ? Ferdi.safeParseInt(element.innerText) : 0); |
9 | }; | 9 | }; |
10 | 10 | ||
11 | Ferdi.loop(getMessages); | 11 | Ferdi.loop(getMessages); |