diff options
author | Vijay A <avijayr@protonmail.com> | 2021-05-26 18:10:17 +0530 |
---|---|---|
committer | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-05-26 20:34:46 +0530 |
commit | e05d27ea49929e763906e6c430ec79c1a093dde7 (patch) | |
tree | 89cbe160de00b97d45537b0d2fc589244f8a24c7 /recipes | |
parent | Minifying images (diff) | |
download | ferdium-recipes-e05d27ea49929e763906e6c430ec79c1a093dde7.tar.gz ferdium-recipes-e05d27ea49929e763906e6c430ec79c1a093dde7.tar.zst ferdium-recipes-e05d27ea49929e763906e6c430ec79c1a093dde7.zip |
Replace 'remote' with 'electron/remote'
Bumped up major version for affected recipes to denote breaking changes
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/android-messages/package.json | 2 | ||||
-rw-r--r-- | recipes/android-messages/webview.js | 8 | ||||
-rw-r--r-- | recipes/googlemeet/package.json | 2 | ||||
-rw-r--r-- | recipes/googlemeet/webview.js | 6 | ||||
-rw-r--r-- | recipes/lastpass/package.json | 4 | ||||
-rw-r--r-- | recipes/lastpass/webview.js | 8 | ||||
-rw-r--r-- | recipes/whatsapp/package.json | 2 | ||||
-rw-r--r-- | recipes/whatsapp/webview.js | 12 |
8 files changed, 22 insertions, 22 deletions
diff --git a/recipes/android-messages/package.json b/recipes/android-messages/package.json index 9ff5d0a..752357f 100644 --- a/recipes/android-messages/package.json +++ b/recipes/android-messages/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "android-messages", | 2 | "id": "android-messages", |
3 | "name": "Android Messages", | 3 | "name": "Android Messages", |
4 | "version": "1.3.0", | 4 | "version": "2.0.0", |
5 | "description": "Android Messages", | 5 | "description": "Android Messages", |
6 | "main": "index.js", | 6 | "main": "index.js", |
7 | "author": "Daniel Weinberger, Stefan Malzner <stefan@adlk.io>", | 7 | "author": "Daniel Weinberger, Stefan Malzner <stefan@adlk.io>", |
diff --git a/recipes/android-messages/webview.js b/recipes/android-messages/webview.js index 7c8e004..21323a5 100644 --- a/recipes/android-messages/webview.js +++ b/recipes/android-messages/webview.js | |||
@@ -1,10 +1,10 @@ | |||
1 | "use strict"; | 1 | "use strict"; |
2 | 2 | ||
3 | const { | 3 | const { |
4 | remote | 4 | getCurrentWebContents |
5 | } = require('electron'); | 5 | } = require('@electron/remote'); |
6 | 6 | ||
7 | const webContents = remote.getCurrentWebContents(); | 7 | const webContents = getCurrentWebContents(); |
8 | const { | 8 | const { |
9 | session | 9 | session |
10 | } = webContents; | 10 | } = webContents; |
@@ -44,4 +44,4 @@ module.exports = (Franz, settings) => { | |||
44 | } | 44 | } |
45 | 45 | ||
46 | Franz.loop(getMessages); | 46 | Franz.loop(getMessages); |
47 | }; \ No newline at end of file | 47 | }; |
diff --git a/recipes/googlemeet/package.json b/recipes/googlemeet/package.json index 37fbc0b..00fe1fd 100644 --- a/recipes/googlemeet/package.json +++ b/recipes/googlemeet/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "googlemeet", | 2 | "id": "googlemeet", |
3 | "name": "Google Meet", | 3 | "name": "Google Meet", |
4 | "version": "1.0.5", | 4 | "version": "2.0.0", |
5 | "description": "Google Meet", | 5 | "description": "Google Meet", |
6 | "main": "index.js", | 6 | "main": "index.js", |
7 | "author": "Patrick Thoelken <patrick.thoelken@outlook.com>", | 7 | "author": "Patrick Thoelken <patrick.thoelken@outlook.com>", |
diff --git a/recipes/googlemeet/webview.js b/recipes/googlemeet/webview.js index 8e91418..332dc1c 100644 --- a/recipes/googlemeet/webview.js +++ b/recipes/googlemeet/webview.js | |||
@@ -1,12 +1,12 @@ | |||
1 | "use strict"; | 1 | "use strict"; |
2 | 2 | ||
3 | const { | 3 | const { |
4 | remote | 4 | getCurrentWebContents |
5 | } = require('electron'); | 5 | } = require('@electron/remote'); |
6 | 6 | ||
7 | const path = require('path'); | 7 | const path = require('path'); |
8 | 8 | ||
9 | const webContents = remote.getCurrentWebContents(); | 9 | const webContents = getCurrentWebContents(); |
10 | const { | 10 | const { |
11 | session | 11 | session |
12 | } = webContents; | 12 | } = webContents; |
diff --git a/recipes/lastpass/package.json b/recipes/lastpass/package.json index a551edf..38e5cfd 100644 --- a/recipes/lastpass/package.json +++ b/recipes/lastpass/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "lastpass", | 2 | "id": "lastpass", |
3 | "name": "LastPass", | 3 | "name": "LastPass", |
4 | "version": "1.0.0", | 4 | "version": "2.0.0", |
5 | "description": "LastPass integration", | 5 | "description": "LastPass integration", |
6 | "main": "index.js", | 6 | "main": "index.js", |
7 | "author": "Janis Hau <janis@my-new.me>, Jonathan Winter <jonathanhwinter@gmail.com>", | 7 | "author": "Janis Hau <janis@my-new.me>, Jonathan Winter <jonathanhwinter@gmail.com>", |
@@ -11,4 +11,4 @@ | |||
11 | "hasNotificationSound": true, | 11 | "hasNotificationSound": true, |
12 | "message": "LastPass" | 12 | "message": "LastPass" |
13 | } | 13 | } |
14 | } \ No newline at end of file | 14 | } |
diff --git a/recipes/lastpass/webview.js b/recipes/lastpass/webview.js index 4fdd007..2e67364 100644 --- a/recipes/lastpass/webview.js +++ b/recipes/lastpass/webview.js | |||
@@ -1,12 +1,12 @@ | |||
1 | "use strict"; | 1 | "use strict"; |
2 | 2 | ||
3 | const { | 3 | const { |
4 | remote | 4 | getCurrentWebContents |
5 | } = require('electron'); | 5 | } = require('@electron/remote'); |
6 | 6 | ||
7 | const path = require('path'); | 7 | const path = require('path'); |
8 | 8 | ||
9 | const webContents = remote.getCurrentWebContents(); | 9 | const webContents = getCurrentWebContents(); |
10 | const { | 10 | const { |
11 | session | 11 | session |
12 | } = webContents; | 12 | } = webContents; |
@@ -47,4 +47,4 @@ module.exports = Franz => { | |||
47 | 47 | ||
48 | Franz.injectCSS(path.join(__dirname, 'service.css')); | 48 | Franz.injectCSS(path.join(__dirname, 'service.css')); |
49 | Franz.loop(getMessages); | 49 | Franz.loop(getMessages); |
50 | }; \ No newline at end of file | 50 | }; |
diff --git a/recipes/whatsapp/package.json b/recipes/whatsapp/package.json index 794623e..e9c4bf4 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": "2.0.9", | 4 | "version": "3.0.0", |
5 | "description": "WhatsApp", | 5 | "description": "WhatsApp", |
6 | "main": "index.js", | 6 | "main": "index.js", |
7 | "author": "Stefan Malzner <stefan@adlk.io>", | 7 | "author": "Stefan Malzner <stefan@adlk.io>", |
diff --git a/recipes/whatsapp/webview.js b/recipes/whatsapp/webview.js index 169b54c..5dd3729 100644 --- a/recipes/whatsapp/webview.js +++ b/recipes/whatsapp/webview.js | |||
@@ -1,12 +1,12 @@ | |||
1 | "use strict"; | 1 | "use strict"; |
2 | 2 | ||
3 | const { | 3 | const { |
4 | remote | 4 | getCurrentWebContents |
5 | } = require('electron'); | 5 | } = require('@electron/remote'); |
6 | 6 | ||
7 | const path = require('path'); | 7 | const path = require('path'); |
8 | 8 | ||
9 | const webContents = remote.getCurrentWebContents(); | 9 | const webContents = getCurrentWebContents(); |
10 | const { | 10 | const { |
11 | session | 11 | session |
12 | } = webContents; | 12 | } = webContents; |
@@ -36,16 +36,16 @@ module.exports = Franz => { | |||
36 | for (var i = 0; i < chatElems.length; i++) { | 36 | for (var i = 0; i < chatElems.length; i++) { |
37 | var chatElem = chatElems[i]; | 37 | var chatElem = chatElems[i]; |
38 | var unreadElem = chatElem.children[0].children[0].children[1].children[1].children[1]; | 38 | var unreadElem = chatElem.children[0].children[0].children[1].children[1].children[1]; |
39 | 39 | ||
40 | var countValue = parseInt(unreadElem.textContent) || 0; // Returns 0 in case of isNaN | 40 | var countValue = parseInt(unreadElem.textContent) || 0; // Returns 0 in case of isNaN |
41 | 41 | ||
42 | if (unreadElem.querySelectorAll("[data-icon=muted]").length === 0) { | 42 | if (unreadElem.querySelectorAll("[data-icon=muted]").length === 0) { |
43 | count += countValue; | 43 | count += countValue; |
44 | } else { | 44 | } else { |
45 | indirectCount += countValue; | 45 | indirectCount += countValue; |
46 | } | 46 | } |
47 | } | 47 | } |
48 | 48 | ||
49 | Franz.setBadge(count, indirectCount); | 49 | Franz.setBadge(count, indirectCount); |
50 | }; | 50 | }; |
51 | 51 | ||