aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/instagram
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/instagram')
-rw-r--r--recipes/instagram/package.json2
-rw-r--r--recipes/instagram/webview.js12
2 files changed, 7 insertions, 7 deletions
diff --git a/recipes/instagram/package.json b/recipes/instagram/package.json
index e0449bb..7425164 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.5.2", 4 "version": "2.5.3",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://instagram.com/", 7 "serviceURL": "https://instagram.com/",
diff --git a/recipes/instagram/webview.js b/recipes/instagram/webview.js
index b63e683..3092d21 100644
--- a/recipes/instagram/webview.js
+++ b/recipes/instagram/webview.js
@@ -40,12 +40,12 @@ module.exports = (Ferdium, settings) => {
40 ); 40 );
41 41
42 const getMessages = () => { 42 const getMessages = () => {
43 const element = document.querySelector('a[href^="/direct/inbox"]'); 43 const element = document.querySelector('a[href^="/direct/inbox"] span');
44 if (element) { 44 Ferdium.setBadge(
45 Ferdium.setBadge( 45 element && element.textContent
46 element.textContent ? Ferdium.safeParseInt(element.textContent) : 0, 46 ? Ferdium.safeParseInt(element.textContent)
47 ); 47 : 0,
48 } 48 );
49 }; 49 };
50 50
51 Ferdium.loop(getMessages); 51 Ferdium.loop(getMessages);