diff options
Diffstat (limited to 'recipes/messenger/webview.js')
-rw-r--r-- | recipes/messenger/webview.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/recipes/messenger/webview.js b/recipes/messenger/webview.js index 749bdfd..210e6b5 100644 --- a/recipes/messenger/webview.js +++ b/recipes/messenger/webview.js | |||
@@ -20,8 +20,17 @@ module.exports = Ferdium => { | |||
20 | Ferdium.setBadge(count); | 20 | Ferdium.setBadge(count); |
21 | }; | 21 | }; |
22 | 22 | ||
23 | const hideInstallMessage = () => { | ||
24 | const installMessage = document.querySelector('.usczdcwk'); | ||
25 | if (installMessage.style.display != 'none') { | ||
26 | installMessage.style.display = 'none' | ||
27 | } | ||
28 | } | ||
29 | |||
23 | Ferdium.loop(getMessages); | 30 | Ferdium.loop(getMessages); |
24 | 31 | ||
32 | Ferdium.loop(hideInstallMessage); | ||
33 | |||
25 | localStorage.setItem( | 34 | localStorage.setItem( |
26 | '_cs_desktopNotifsEnabled', | 35 | '_cs_desktopNotifsEnabled', |
27 | JSON.stringify({ | 36 | JSON.stringify({ |