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/stackexchange/package.json | 2 +- recipes/stackexchange/webview.js | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 recipes/stackexchange/webview.js (limited to 'recipes/stackexchange') diff --git a/recipes/stackexchange/package.json b/recipes/stackexchange/package.json index d1f89bc..2a57d10 100644 --- a/recipes/stackexchange/package.json +++ b/recipes/stackexchange/package.json @@ -1,7 +1,7 @@ { "id": "stackexchange", "name": "StackExchange", - "version": "1.2.0", + "version": "1.3.0", "license": "MIT", "config": { "serviceURL": "https://stackexchange.com/" diff --git a/recipes/stackexchange/webview.js b/recipes/stackexchange/webview.js new file mode 100644 index 0000000..86bb422 --- /dev/null +++ b/recipes/stackexchange/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