From 591a9a4ca229dcda6e54d4e24f79dfef14d0acc5 Mon Sep 17 00:00:00 2001 From: Iaroslav Date: Sat, 23 Oct 2021 19:13:55 +0500 Subject: Add setDialogTitle feature to api, WhatsApp and Telegram (#750) Co-authored-by: Vijay A --- docs/frontend_api.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'docs/frontend_api.md') 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); Ferdi.setBadge(3); ``` +### setDialogTitle(title) + +Sets the active dialog title to the app title + +#### Arguments + +1. `string` title + +- sets the active dialog title eg. WhatsApp contact name + +#### Usage + +```js +Ferdi.setDialogTitle('Dialog title'); +``` + ### injectCSS(pathToCssFile) Injects the contents of one or more CSS files into the current webview -- cgit v1.2.3-54-g00ecf