diff options
author | 2021-10-23 19:16:01 +0500 | |
---|---|---|
committer | 2021-10-23 19:46:01 +0530 | |
commit | 4d02744dfab8a49075b82a5ddbdc02e08c7e8a66 (patch) | |
tree | dc7b08818a8f116d41886924552c92719c4d081a /src/webview/lib/Userscript.js | |
parent | chore: upgrade npm modules (diff) | |
download | ferdium-app-4d02744dfab8a49075b82a5ddbdc02e08c7e8a66.tar.gz ferdium-app-4d02744dfab8a49075b82a5ddbdc02e08c7e8a66.tar.zst ferdium-app-4d02744dfab8a49075b82a5ddbdc02e08c7e8a66.zip |
Add active dialog title feature (#2114)
https://github.com/getferdi/ferdi/issues/1280
WhatsApp-like services can set active dialog title to the app title eg. Ferdi - WhatsApp - Contact Name
Diffstat (limited to 'src/webview/lib/Userscript.js')
-rw-r--r-- | src/webview/lib/Userscript.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/webview/lib/Userscript.js b/src/webview/lib/Userscript.js index bed2b1ff8..f7bb99206 100644 --- a/src/webview/lib/Userscript.js +++ b/src/webview/lib/Userscript.js | |||
@@ -60,6 +60,16 @@ export default class Userscript { | |||
60 | } | 60 | } |
61 | 61 | ||
62 | /** | 62 | /** |
63 | * Set active dialog title to the app title | ||
64 | * @param {*} title Dialog title | ||
65 | */ | ||
66 | setDialogTitle(title) { | ||
67 | if (this.recipe && this.recipe.setDialogTitle) { | ||
68 | this.recipe.setDialogTitle(title); | ||
69 | } | ||
70 | } | ||
71 | |||
72 | /** | ||
63 | * Inject CSS files into the current page | 73 | * Inject CSS files into the current page |
64 | * | 74 | * |
65 | * @param {...string} files | 75 | * @param {...string} files |