diff options
author | 2022-06-07 17:01:37 +0100 | |
---|---|---|
committer | 2022-06-07 16:01:37 +0000 | |
commit | 54f3affd80401051db8464d6bed8ad4ed1e66fd1 (patch) | |
tree | d166ec91c97ec1220787c857f6e3c5004d13889b /scripts | |
parent | Add home assistant recipe (#47) (diff) | |
download | ferdium-recipes-54f3affd80401051db8464d6bed8ad4ed1e66fd1.tar.gz ferdium-recipes-54f3affd80401051db8464d6bed8ad4ed1e66fd1.tar.zst ferdium-recipes-54f3affd80401051db8464d6bed8ad4ed1e66fd1.zip |
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 <vraravam@users.noreply.github.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/create.js | 4 | ||||
-rw-r--r-- | scripts/sample_recipe/webview.js | 10 |
2 files changed, 11 insertions, 3 deletions
diff --git a/scripts/create.js b/scripts/create.js index 38d1688..1d20668 100644 --- a/scripts/create.js +++ b/scripts/create.js | |||
@@ -10,9 +10,9 @@ if (process.argv.length < 3) { | |||
10 | For example: | 10 | For example: |
11 | pnpm create WhatsApp | 11 | pnpm create WhatsApp |
12 | pnpm create "Google Hangouts" | 12 | pnpm create "Google Hangouts" |
13 | You can set "Folder name" to "FerdiDev" to use Ferdium's development instance instead: | 13 | You can set "Folder name" to "FerdiumDev" to use Ferdium's development instance instead: |
14 | 14 | ||
15 | pnpm create WhatsApp FerdiDev | 15 | pnpm create WhatsApp FerdiumDev |
16 | `); | 16 | `); |
17 | throw new Error('Please provide the correct number of args!'); | 17 | throw new Error('Please provide the correct number of args!'); |
18 | } | 18 | } |
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 @@ | |||
1 | module.exports = () => { | 1 | const _path = _interopRequireDefault(require('path')); |
2 | |||
3 | function _interopRequireDefault(obj) { | ||
4 | return obj && obj.__esModule ? obj : { default: obj }; | ||
5 | } | ||
6 | |||
7 | module.exports = Ferdium => { | ||
2 | // TODO: If your SNAME service has unread messages, uncomment these lines to implement the logic for updating the badges | 8 | // TODO: If your SNAME service has unread messages, uncomment these lines to implement the logic for updating the badges |
3 | // const getMessages = () => { | 9 | // const getMessages = () => { |
4 | // // TODO: Insert your notification-finding code here | 10 | // // TODO: Insert your notification-finding code here |
5 | // Ferdium.setBadge(0, 0); | 11 | // Ferdium.setBadge(0, 0); |
6 | // }; | 12 | // }; |
7 | // Ferdium.loop(getMessages); | 13 | // Ferdium.loop(getMessages); |
14 | |||
15 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
8 | }; | 16 | }; |