aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/hackmd
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/hackmd
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/hackmd')
-rw-r--r--recipes/hackmd/index.js2
-rw-r--r--recipes/hackmd/package.json2
-rw-r--r--recipes/hackmd/webview.js10
3 files changed, 7 insertions, 7 deletions
diff --git a/recipes/hackmd/index.js b/recipes/hackmd/index.js
index 3a2908b..5114772 100644
--- a/recipes/hackmd/index.js
+++ b/recipes/hackmd/index.js
@@ -1,2 +1,2 @@
1// todo allow custom url 1// todo allow custom url
2module.exports = Ferdi => class HackMd extends Ferdi {}; 2module.exports = Ferdium => Ferdium;
diff --git a/recipes/hackmd/package.json b/recipes/hackmd/package.json
index 6a58405..24b790d 100644
--- a/recipes/hackmd/package.json
+++ b/recipes/hackmd/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "hackmd", 2 "id": "hackmd",
3 "name": "HackMd", 3 "name": "HackMd",
4 "version": "1.1.1", 4 "version": "1.2.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://hackmd.io", 7 "serviceURL": "https://hackmd.io",
diff --git a/recipes/hackmd/webview.js b/recipes/hackmd/webview.js
index 9ccf912..dbd4746 100644
--- a/recipes/hackmd/webview.js
+++ b/recipes/hackmd/webview.js
@@ -2,17 +2,17 @@ const _path = _interopRequireDefault(require('path'));
2 2
3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4 4
5module.exports = (Ferdi) => { 5module.exports = (Ferdium) => {
6 const getMessages = () => { 6 const getMessages = () => {
7 // get unread messages 7 // get unread messages
8 const count = document.querySelectorAll('.guilds-wrapper .badge').length; 8 const count = document.querySelectorAll('.guilds-wrapper .badge').length;
9 9
10 // set Ferdi badge 10 // set Ferdium badge
11 Ferdi.setBadge(count); 11 Ferdium.setBadge(count);
12 }; 12 };
13 13
14 Ferdi.loop(getMessages); 14 Ferdium.loop(getMessages);
15 15
16 // Hide download message 16 // Hide download message
17 Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); 17 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
18}; 18};