aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/google-voice/webview.js
diff options
context:
space:
mode:
authorLibravatar oc013 <101832295+oc013@users.noreply.github.com>2023-11-03 10:13:45 -0400
committerLibravatar GitHub <noreply@github.com>2023-11-03 08:13:45 -0600
commit48dcdaff46ce392a23a945bd96e28b473ae000b0 (patch)
tree862a1a534f13efacb51d503e49f8687f74c66567 /recipes/google-voice/webview.js
parentfeat: add memos recipe (#445) (diff)
downloadferdium-recipes-48dcdaff46ce392a23a945bd96e28b473ae000b0.tar.gz
ferdium-recipes-48dcdaff46ce392a23a945bd96e28b473ae000b0.tar.zst
ferdium-recipes-48dcdaff46ce392a23a945bd96e28b473ae000b0.zip
Google Voice recipe add darkmode.css, fix message counts (#449)
Diffstat (limited to 'recipes/google-voice/webview.js')
-rw-r--r--recipes/google-voice/webview.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes/google-voice/webview.js b/recipes/google-voice/webview.js
index d589f28..c679aa0 100644
--- a/recipes/google-voice/webview.js
+++ b/recipes/google-voice/webview.js
@@ -18,13 +18,13 @@ module.exports = Ferdium => {
18 count = Ferdium.safeParseInt(el.textContent.replaceAll(/[ ()]/gi, '')); 18 count = Ferdium.safeParseInt(el.textContent.replaceAll(/[ ()]/gi, ''));
19 } else { 19 } else {
20 const countMessages = parseQuery( 20 const countMessages = parseQuery(
21 'gv-nav-tab[tooltip="Messages"] div[aria-label="Unread count"]', 21 'mat-nav-list a[gv-test-id="sidenav-messages"] span.navItemBadge',
22 ); 22 );
23 const countCalls = parseQuery( 23 const countCalls = parseQuery(
24 'gv-nav-tab[tooltip="Calls"] div[aria-label="Unread count"]', 24 'mat-nav-list a[gv-test-id="sidenav-calls"] span.navItemBadge',
25 ); 25 );
26 const countVoicemails = parseQuery( 26 const countVoicemails = parseQuery(
27 'gv-nav-tab[tooltip="Voicemail"] div[aria-label="Unread count"]', 27 'mat-nav-list a[gv-test-id="sidenav-voicemail"] span.navItemBadge',
28 ); 28 );
29 count = countMessages + countCalls + countVoicemails; 29 count = countMessages + countCalls + countVoicemails;
30 } 30 }