diff options
Diffstat (limited to 'scripts/sample_recipe')
-rw-r--r-- | scripts/sample_recipe/package.json | 2 | ||||
-rw-r--r-- | scripts/sample_recipe/webview.js | 15 |
2 files changed, 8 insertions, 9 deletions
diff --git a/scripts/sample_recipe/package.json b/scripts/sample_recipe/package.json index 6481f95..e2eba15 100644 --- a/scripts/sample_recipe/package.json +++ b/scripts/sample_recipe/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "SERVICE", | 2 | "id": "SERVICE", |
3 | "name": "SNAME", | 3 | "name": "SNAME", |
4 | "version": "1.0.1", | 4 | "version": "1.0.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://SERVICE.com" | 7 | "serviceURL": "https://SERVICE.com" |
diff --git a/scripts/sample_recipe/webview.js b/scripts/sample_recipe/webview.js index ddd0b40..53924f2 100644 --- a/scripts/sample_recipe/webview.js +++ b/scripts/sample_recipe/webview.js | |||
@@ -1,15 +1,14 @@ | |||
1 | "use strict"; | 1 | var _path = _interopRequireDefault(require('path')); |
2 | |||
3 | var _path = _interopRequireDefault(require("path")); | ||
4 | 2 | ||
5 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | 3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
6 | 4 | ||
7 | module.exports = Ferdi => { | 5 | module.exports = Ferdi => { |
8 | const getMessages = function getMessages() { | 6 | // TODO: If your SNAME service has unread messages, uncomment these lines to implement the logic for updating the badges |
9 | // TODO: Insert your notification-finding code here | 7 | // const getMessages = function getMessages() { |
10 | Ferdi.setBadge(0, 0); | 8 | // // TODO: Insert your notification-finding code here |
11 | }; | 9 | // Ferdi.setBadge(0, 0); |
10 | // }; | ||
11 | // Ferdi.loop(getMessages); | ||
12 | 12 | ||
13 | Ferdi.loop(getMessages); | ||
14 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); | 13 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); |
15 | }; | 14 | }; |