diff options
Diffstat (limited to 'recipes/notion')
-rw-r--r-- | recipes/notion/index.js | 2 | ||||
-rw-r--r-- | recipes/notion/webview.js | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/recipes/notion/index.js b/recipes/notion/index.js index 17daa35..258da41 100644 --- a/recipes/notion/index.js +++ b/recipes/notion/index.js | |||
@@ -1,3 +1 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = Franz => Franz; | module.exports = Franz => Franz; | |
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 | |||
3 | module.exports = (Franz) => { | 1 | module.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 | }; |