aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/notion/webview.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-07-31 15:28:23 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-07-31 15:28:23 +0530
commit97697e3d069972844b2912a93022f4a4904a40d6 (patch)
tree53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/notion/webview.js
parentAllow any url in the custom-service to allow for sites like 'http://translate... (diff)
downloadferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.gz
ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.zst
ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.zip
Fixed eslintrc as root for this folder; Reformatted all files.
Diffstat (limited to 'recipes/notion/webview.js')
-rw-r--r--recipes/notion/webview.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/recipes/notion/webview.js b/recipes/notion/webview.js
index 5308626..d01434e 100644
--- a/recipes/notion/webview.js
+++ b/recipes/notion/webview.js
@@ -1,9 +1,7 @@
1"use strict";
2
3module.exports = (Franz) => { 1module.exports = (Franz) => {
4 function getMessages() { 2 function getMessages() {
5 let direct = 0; 3 let direct = 0;
6 let indirect = 0; 4 const indirect = 0;
7 const badgeDiv = document.querySelector('.notion-sidebar-container > div > div > div > :nth-child(4) > :nth-child(2) > div > :nth-child(3) > div > div'); 5 const badgeDiv = document.querySelector('.notion-sidebar-container > div > div > div > :nth-child(4) > :nth-child(2) > div > :nth-child(3) > div > div');
8 if (badgeDiv) { 6 if (badgeDiv) {
9 const count = parseInt(badgeDiv.innerText); 7 const count = parseInt(badgeDiv.innerText);
@@ -14,4 +12,4 @@ module.exports = (Franz) => {
14 } 12 }
15 13
16 Franz.loop(getMessages); 14 Franz.loop(getMessages);
17} 15};