diff options
Diffstat (limited to 'docs/integration.md')
-rw-r--r-- | docs/integration.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/integration.md b/docs/integration.md index c078ba1..9e9a547 100644 --- a/docs/integration.md +++ b/docs/integration.md | |||
@@ -64,7 +64,7 @@ Every recipe needs a specific file structure in order to work as a Ferdi recipe | |||
64 | - icon.svg - Icon for the service in SVG form (must be square) | 64 | - icon.svg - Icon for the service in SVG form (must be square) |
65 | - index.js - Backend script, this script is NOT included in the service webview but only in Ferdi itself | 65 | - index.js - Backend script, this script is NOT included in the service webview but only in Ferdi itself |
66 | - package.json - Information about the recipe | 66 | - package.json - Information about the recipe |
67 | - webview.js - Frontend script, this script is injected into the service itself but still has access to all NodeJS APIs | 67 | - webview.js - Optional frontend script, this script is injected into the service itself but still has access to all NodeJS APIs |
68 | - darkmode.css - CSS File that gets included when dark mode is activated | 68 | - darkmode.css - CSS File that gets included when dark mode is activated |
69 | 69 | ||
70 | ### package.json | 70 | ### package.json |
@@ -153,7 +153,7 @@ overrideUserAgent() { | |||
153 | 153 | ||
154 | ### webview.js | 154 | ### webview.js |
155 | 155 | ||
156 | The `webview.js` is the actual script that will be loaded into the webview. Here you can do whatever you want to do in order perfectly integrate the service into Ferdi. For convenience, we have provided a very simple set of functions to set unread message badges (`Ferdi.setBadge()`), set active dialog title (`Ferdi.setDialogTitle()`) and inject CSS files (`Ferdi.injectCSS()`). | 156 | The optional `webview.js` is the actual script that will be loaded into the webview. Here you can do whatever you want to do in order perfectly integrate the service into Ferdi. For convenience, we have provided a very simple set of functions to set unread message badges (`Ferdi.setBadge()`), set active dialog title (`Ferdi.setDialogTitle()`) and inject CSS files (`Ferdi.injectCSS()`). |
157 | 157 | ||
158 | ```js | 158 | ```js |
159 | // telegram integration | 159 | // telegram integration |