From aff47bbbed04ce5b95439f7881bbea62021b173b Mon Sep 17 00:00:00 2001 From: Vijay A Date: Wed, 22 Sep 2021 05:42:17 +0530 Subject: feature: Add new recipe for 'stackoverflow-chat' (fixes #718) --- recipes/stackoverflow-chat/webview.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 recipes/stackoverflow-chat/webview.js (limited to 'recipes/stackoverflow-chat/webview.js') diff --git a/recipes/stackoverflow-chat/webview.js b/recipes/stackoverflow-chat/webview.js new file mode 100644 index 0000000..044c773 --- /dev/null +++ b/recipes/stackoverflow-chat/webview.js @@ -0,0 +1,14 @@ +var _path = _interopRequireDefault(require('path')); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +module.exports = Ferdi => { + // TODO: If your stackoverflow-chat service has unread messages, uncomment these lines to implement the logic for updating the badges + // const getMessages = () => { + // // TODO: Insert your notification-finding code here + // Ferdi.setBadge(0, 0); + // }; + // Ferdi.loop(getMessages); + + Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); +}; -- cgit v1.2.3-54-g00ecf