aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/grape
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-18 06:51:50 -0500
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2022-04-18 06:51:50 -0500
commit18801ed0c02627e87639dc0848cab44dacc18be2 (patch)
tree15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/grape
parentRemove deprecated webPreference flag (diff)
downloadferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.gz
ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.zst
ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.zip
Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2)
Diffstat (limited to 'recipes/grape')
-rw-r--r--recipes/grape/index.js2
-rw-r--r--recipes/grape/package.json2
-rw-r--r--recipes/grape/webview.js6
3 files changed, 5 insertions, 5 deletions
diff --git a/recipes/grape/index.js b/recipes/grape/index.js
index 2039c8d..593f026 100644
--- a/recipes/grape/index.js
+++ b/recipes/grape/index.js
@@ -1,6 +1,6 @@
1function _asyncToGenerator(fn) { return function () { const gen = Reflect.apply(fn, this, arguments); return new Promise((resolve, reject) => { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then((value) => { step('next', value); }, (error) => { step('throw', error); }); } } return step('next'); }); }; } 1function _asyncToGenerator(fn) { return function () { const gen = Reflect.apply(fn, this, arguments); return new Promise((resolve, reject) => { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then((value) => { step('next', value); }, (error) => { step('throw', error); }); } } return step('next'); }); }; }
2 2
3module.exports = Ferdi => class Grape extends Ferdi { 3module.exports = Ferdium => class Grape extends Ferdium {
4 validateUrl(url) { 4 validateUrl(url) {
5 return _asyncToGenerator(function* () { 5 return _asyncToGenerator(function* () {
6 try { 6 try {
diff --git a/recipes/grape/package.json b/recipes/grape/package.json
index fa557f8..9fe40ab 100644
--- a/recipes/grape/package.json
+++ b/recipes/grape/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "grape", 2 "id": "grape",
3 "name": "Grape", 3 "name": "Grape",
4 "version": "1.1.1", 4 "version": "1.2.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://{teamId}.chatgrape.com/chat", 7 "serviceURL": "https://{teamId}.chatgrape.com/chat",
diff --git a/recipes/grape/webview.js b/recipes/grape/webview.js
index 9c69aa2..6349bd0 100644
--- a/recipes/grape/webview.js
+++ b/recipes/grape/webview.js
@@ -1,10 +1,10 @@
1module.exports = Ferdi => { 1module.exports = Ferdium => {
2 const getMessages = () => { 2 const getMessages = () => {
3 const directMessages = document.querySelectorAll('.c0120').length; 3 const directMessages = document.querySelectorAll('.c0120').length;
4 const indirectMessages = document.querySelectorAll('.c0121').length; 4 const indirectMessages = document.querySelectorAll('.c0121').length;
5 5
6 Ferdi.setBadge(directMessages, indirectMessages); 6 Ferdium.setBadge(directMessages, indirectMessages);
7 }; 7 };
8 8
9 Ferdi.loop(getMessages); 9 Ferdium.loop(getMessages);
10}; 10};