Skip to content

Commit 7f8bc71

Browse files
authored
add: Ko-fi recipe (#636)
1 parent f8e9970 commit 7f8bc71

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed

recipes/ko-fi/icon.svg

+12
Loading

recipes/ko-fi/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = Ferdium => Ferdium;

recipes/ko-fi/package.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"id": "ko-fi",
3+
"name": "Ko-fi",
4+
"version": "1.0.0",
5+
"license": "MIT",
6+
"config": {
7+
"serviceURL": "https://ko-fi.com"
8+
}
9+
}

recipes/ko-fi/webview.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
function _interopRequireDefault(obj) {
2+
return obj && obj.__esModule ? obj : { default: obj };
3+
}
4+
5+
const _path = _interopRequireDefault(require('path'));
6+
7+
module.exports = Ferdium => {
8+
// TODO: If your Ko-fi service has unread messages, uncomment these lines to implement the logic for updating the badges
9+
// const getMessages = () => {
10+
// // TODO: Insert your notification-finding code here
11+
// Ferdium.setBadge(0, 0);
12+
// };
13+
// Ferdium.loop(getMessages);
14+
15+
Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
16+
};

0 commit comments

Comments
 (0)