aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-05-26 18:10:17 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-05-26 20:34:46 +0530
commite05d27ea49929e763906e6c430ec79c1a093dde7 (patch)
tree89cbe160de00b97d45537b0d2fc589244f8a24c7
parentMinifying images (diff)
downloadferdium-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
-rw-r--r--all.json8
-rw-r--r--recipes/android-messages/package.json2
-rw-r--r--recipes/android-messages/webview.js8
-rw-r--r--recipes/googlemeet/package.json2
-rw-r--r--recipes/googlemeet/webview.js6
-rw-r--r--recipes/lastpass/package.json4
-rw-r--r--recipes/lastpass/webview.js8
-rw-r--r--recipes/whatsapp/package.json2
-rw-r--r--recipes/whatsapp/webview.js12
9 files changed, 26 insertions, 26 deletions
diff --git a/all.json b/all.json
index 2c0943e..055ab3f 100644
--- a/all.json
+++ b/all.json
@@ -26,7 +26,7 @@
26 "featured": false, 26 "featured": false,
27 "id": "android-messages", 27 "id": "android-messages",
28 "name": "Android Messages", 28 "name": "Android Messages",
29 "version": "1.3.0", 29 "version": "2.0.0",
30 "icons": { 30 "icons": {
31 "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/android-messages/icon.png", 31 "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/android-messages/icon.png",
32 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/android-messages/icon.svg" 32 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/android-messages/icon.svg"
@@ -521,7 +521,7 @@
521 "featured": false, 521 "featured": false,
522 "id": "googlemeet", 522 "id": "googlemeet",
523 "name": "Google Meet", 523 "name": "Google Meet",
524 "version": "1.0.5", 524 "version": "2.0.0",
525 "icons": { 525 "icons": {
526 "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/googlemeet/icon.png", 526 "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/googlemeet/icon.png",
527 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/googlemeet/icon.svg" 527 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/googlemeet/icon.svg"
@@ -785,7 +785,7 @@
785 "featured": false, 785 "featured": false,
786 "id": "lastpass", 786 "id": "lastpass",
787 "name": "LastPass", 787 "name": "LastPass",
788 "version": "1.0.0", 788 "version": "2.0.0",
789 "icons": { 789 "icons": {
790 "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/lastpass/icon.png", 790 "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/lastpass/icon.png",
791 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/lastpass/icon.svg" 791 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/lastpass/icon.svg"
@@ -1555,7 +1555,7 @@
1555 "featured": true, 1555 "featured": true,
1556 "id": "whatsapp", 1556 "id": "whatsapp",
1557 "name": "WhatsApp", 1557 "name": "WhatsApp",
1558 "version": "2.0.9", 1558 "version": "3.0.0",
1559 "icons": { 1559 "icons": {
1560 "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/whatsapp/icon.png", 1560 "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/whatsapp/icon.png",
1561 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/whatsapp/icon.svg" 1561 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/whatsapp/icon.svg"
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
3const { 3const {
4 remote 4 getCurrentWebContents
5} = require('electron'); 5} = require('@electron/remote');
6 6
7const webContents = remote.getCurrentWebContents(); 7const webContents = getCurrentWebContents();
8const { 8const {
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
3const { 3const {
4 remote 4 getCurrentWebContents
5} = require('electron'); 5} = require('@electron/remote');
6 6
7const path = require('path'); 7const path = require('path');
8 8
9const webContents = remote.getCurrentWebContents(); 9const webContents = getCurrentWebContents();
10const { 10const {
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
3const { 3const {
4 remote 4 getCurrentWebContents
5} = require('electron'); 5} = require('@electron/remote');
6 6
7const path = require('path'); 7const path = require('path');
8 8
9const webContents = remote.getCurrentWebContents(); 9const webContents = getCurrentWebContents();
10const { 10const {
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
3const { 3const {
4 remote 4 getCurrentWebContents
5} = require('electron'); 5} = require('@electron/remote');
6 6
7const path = require('path'); 7const path = require('path');
8 8
9const webContents = remote.getCurrentWebContents(); 9const webContents = getCurrentWebContents();
10const { 10const {
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