From f93bc9dc42088c8e910223c9de3f5e7bc6715ceb Mon Sep 17 00:00:00 2001 From: Vijay A Date: Fri, 27 Aug 2021 10:43:48 +0530 Subject: docs: fixed template file for creating recipe. --- scripts/sample_recipe/webview.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'scripts/sample_recipe/webview.js') 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 @@ -"use strict"; - -var _path = _interopRequireDefault(require("path")); +var _path = _interopRequireDefault(require('path')); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } module.exports = Ferdi => { - const getMessages = function getMessages() { - // TODO: Insert your notification-finding code here - Ferdi.setBadge(0, 0); - }; + // TODO: If your SNAME service has unread messages, uncomment these lines to implement the logic for updating the badges + // const getMessages = function getMessages() { + // // TODO: Insert your notification-finding code here + // Ferdi.setBadge(0, 0); + // }; + // Ferdi.loop(getMessages); - Ferdi.loop(getMessages); Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); }; -- cgit v1.2.3-70-g09d2