diff options
Diffstat (limited to 'recipes/instagram/webview.js')
-rw-r--r-- | recipes/instagram/webview.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/instagram/webview.js b/recipes/instagram/webview.js index 8db5852..b971021 100644 --- a/recipes/instagram/webview.js +++ b/recipes/instagram/webview.js | |||
@@ -3,7 +3,7 @@ const _path = _interopRequireDefault(require('path')); | |||
3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | 3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
4 | 4 | ||
5 | module.exports = (Ferdi) => { | 5 | module.exports = (Ferdi) => { |
6 | const getMessages = function getMessages() { | 6 | const getMessages = () => { |
7 | const element = document.querySelector('a[href^="/direct/inbox"]'); | 7 | const element = document.querySelector('a[href^="/direct/inbox"]'); |
8 | Ferdi.setBadge(element ? Ferdi.safeParseInt(element.innerText) : 0); | 8 | Ferdi.setBadge(element ? Ferdi.safeParseInt(element.innerText) : 0); |
9 | }; | 9 | }; |