diff options
author | Fernando Figueiredo <fernando.fig@gmail.com> | 2022-07-03 12:02:06 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-03 15:02:06 +0000 |
commit | efec7e7c6bdd3953bae1936b9ecb2d98b2dac842 (patch) | |
tree | 3ada279dcc95a8ed3572b619cb86cf2b4332c8ef /recipes/whatsapp/webview.js | |
parent | Upgrade 'pnpm' to '7.4.1' (diff) | |
download | ferdium-recipes-efec7e7c6bdd3953bae1936b9ecb2d98b2dac842.tar.gz ferdium-recipes-efec7e7c6bdd3953bae1936b9ecb2d98b2dac842.tar.zst ferdium-recipes-efec7e7c6bdd3953bae1936b9ecb2d98b2dac842.zip |
Workaround for Whatsapp Web UI lag (#94)
Diffstat (limited to 'recipes/whatsapp/webview.js')
-rw-r--r-- | recipes/whatsapp/webview.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/recipes/whatsapp/webview.js b/recipes/whatsapp/webview.js index 3586e14..180be79 100644 --- a/recipes/whatsapp/webview.js +++ b/recipes/whatsapp/webview.js | |||
@@ -36,6 +36,9 @@ module.exports = Ferdium => { | |||
36 | Ferdium.setBadge(count, indirectCount); | 36 | Ferdium.setBadge(count, indirectCount); |
37 | }; | 37 | }; |
38 | 38 | ||
39 | // inject webview hacking script | ||
40 | Ferdium.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js')); | ||
41 | |||
39 | const getActiveDialogTitle = () => { | 42 | const getActiveDialogTitle = () => { |
40 | const element = document.querySelector('header .emoji-texttt'); | 43 | const element = document.querySelector('header .emoji-texttt'); |
41 | 44 | ||