diff options
Diffstat (limited to 'recipes/whatsapp')
-rw-r--r-- | recipes/whatsapp/package.json | 2 | ||||
-rw-r--r-- | recipes/whatsapp/webview.js | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/recipes/whatsapp/package.json b/recipes/whatsapp/package.json index 8ddccfe..f476599 100644 --- a/recipes/whatsapp/package.json +++ b/recipes/whatsapp/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "whatsapp", | 2 | "id": "whatsapp", |
3 | "name": "WhatsApp", | 3 | "name": "WhatsApp", |
4 | "version": "3.4.3", | 4 | "version": "3.4.4", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://web.whatsapp.com", | 7 | "serviceURL": "https://web.whatsapp.com", |
diff --git a/recipes/whatsapp/webview.js b/recipes/whatsapp/webview.js index 180be79..77c4ebb 100644 --- a/recipes/whatsapp/webview.js +++ b/recipes/whatsapp/webview.js | |||
@@ -54,6 +54,16 @@ module.exports = Ferdium => { | |||
54 | Ferdium.releaseServiceWorkers(); | 54 | Ferdium.releaseServiceWorkers(); |
55 | }); | 55 | }); |
56 | 56 | ||
57 | Ferdium.handleDarkMode((isEnabled) => { | ||
58 | |||
59 | if (isEnabled) { | ||
60 | document.body.classList.add('dark'); | ||
61 | } else { | ||
62 | document.body.classList.remove('dark'); | ||
63 | } | ||
64 | |||
65 | }); | ||
66 | |||
57 | Ferdium.loop(loopFunc); | 67 | Ferdium.loop(loopFunc); |
58 | 68 | ||
59 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); | 69 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); |