From be49a2626a471d33ac0803eb2b5afa1807e2e23e Mon Sep 17 00:00:00 2001 From: Vijay A Date: Thu, 10 Nov 2022 18:13:31 +0530 Subject: Added 'webview.js' as a mandatory file and fixed broken recipes --- recipes/google-news/webview.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 recipes/google-news/webview.js (limited to 'recipes/google-news/webview.js') diff --git a/recipes/google-news/webview.js b/recipes/google-news/webview.js new file mode 100644 index 0000000..86bb422 --- /dev/null +++ b/recipes/google-news/webview.js @@ -0,0 +1,16 @@ +const _path = _interopRequireDefault(require('path')); + +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; +} + +module.exports = Ferdium => { + // TODO: If your SNAME service has unread messages, uncomment these lines to implement the logic for updating the badges + // const getMessages = () => { + // // TODO: Insert your notification-finding code here + // Ferdium.setBadge(0, 0); + // }; + // Ferdium.loop(getMessages); + + Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); +}; -- cgit v1.2.3-54-g00ecf