From 54f3affd80401051db8464d6bed8ad4ed1e66fd1 Mon Sep 17 00:00:00 2001 From: André Oliveira <37463445+SpecialAro@users.noreply.github.com> Date: Tue, 7 Jun 2022 17:01:37 +0100 Subject: Add webview.js to some services that were generated without it. (#42) This had blocked users from manually generating a `service.css` which is what the documentation recommends as self-help to override styling. Co-authored-by: Vijay A --- scripts/sample_recipe/webview.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'scripts/sample_recipe/webview.js') diff --git a/scripts/sample_recipe/webview.js b/scripts/sample_recipe/webview.js index dc4a062..86bb422 100644 --- a/scripts/sample_recipe/webview.js +++ b/scripts/sample_recipe/webview.js @@ -1,8 +1,16 @@ -module.exports = () => { +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-70-g09d2