aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/producthunt
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/producthunt')
-rw-r--r--recipes/producthunt/index.js2
-rw-r--r--recipes/producthunt/package.json2
-rw-r--r--recipes/producthunt/webview.js6
3 files changed, 5 insertions, 5 deletions
diff --git a/recipes/producthunt/index.js b/recipes/producthunt/index.js
index 7af3013..2d59d28 100644
--- a/recipes/producthunt/index.js
+++ b/recipes/producthunt/index.js
@@ -1 +1 @@
module.exports = Ferdi => Ferdi module.exports = Ferdium => Ferdium
diff --git a/recipes/producthunt/package.json b/recipes/producthunt/package.json
index 6f4bfb9..64a57a8 100644
--- a/recipes/producthunt/package.json
+++ b/recipes/producthunt/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "producthunt", 2 "id": "producthunt",
3 "name": "Product Hunt", 3 "name": "Product Hunt",
4 "version": "1.0.1", 4 "version": "1.1.0",
5 "license": "MIT", 5 "license": "MIT",
6 "repository": "https://github.com/alexdevero/franz-producthunt-recipe", 6 "repository": "https://github.com/alexdevero/franz-producthunt-recipe",
7 "config": { 7 "config": {
diff --git a/recipes/producthunt/webview.js b/recipes/producthunt/webview.js
index 7f6c74b..86cab43 100644
--- a/recipes/producthunt/webview.js
+++ b/recipes/producthunt/webview.js
@@ -1,13 +1,13 @@
1module.exports = Ferdi => { 1module.exports = Ferdium => {
2 const notificationsSelector = document.querySelector( 2 const notificationsSelector = document.querySelector(
3 '[class*=header_] [class*=content_] [class*=actions_] [class*=notificationsButton_]', 3 '[class*=header_] [class*=content_] [class*=actions_] [class*=notificationsButton_]',
4 ); 4 );
5 5
6 const getMessages = () => { 6 const getMessages = () => {
7 if (notificationsSelector) { 7 if (notificationsSelector) {
8 Ferdi.setBadge(notificationsSelector.textContent); 8 Ferdium.setBadge(notificationsSelector.textContent);
9 } 9 }
10 }; 10 };
11 11
12 Ferdi.loop(getMessages); 12 Ferdium.loop(getMessages);
13}; 13};