diff options
Diffstat (limited to 'docs/frontend_api.md')
-rw-r--r-- | docs/frontend_api.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/frontend_api.md b/docs/frontend_api.md index aa1070b..bd0bfef 100644 --- a/docs/frontend_api.md +++ b/docs/frontend_api.md | |||
@@ -34,6 +34,22 @@ Ferdi.setBadge(4, 2); | |||
34 | Ferdi.setBadge(3); | 34 | Ferdi.setBadge(3); |
35 | ``` | 35 | ``` |
36 | 36 | ||
37 | ### setDialogTitle(title) | ||
38 | |||
39 | Sets the active dialog title to the app title | ||
40 | |||
41 | #### Arguments | ||
42 | |||
43 | 1. `string` title | ||
44 | |||
45 | - sets the active dialog title eg. WhatsApp contact name | ||
46 | |||
47 | #### Usage | ||
48 | |||
49 | ```js | ||
50 | Ferdi.setDialogTitle('Dialog title'); | ||
51 | ``` | ||
52 | |||
37 | ### injectCSS(pathToCssFile) | 53 | ### injectCSS(pathToCssFile) |
38 | 54 | ||
39 | Injects the contents of one or more CSS files into the current webview | 55 | Injects the contents of one or more CSS files into the current webview |