Fix errors.
This commit is contained in:
parent
04b1945239
commit
563e42c640
@ -2,10 +2,14 @@
|
|||||||
|
|
||||||
## ???
|
## ???
|
||||||
|
|
||||||
## Features
|
### Features
|
||||||
|
|
||||||
* Builtin Prosody, Share chat url: ability to show/hide the scrollbar in readonly mode.
|
* Builtin Prosody, Share chat url: ability to show/hide the scrollbar in readonly mode.
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
|
||||||
|
* ConverseJS plugin livechatWindowTitlePlugin: Avoid errors when model is not initialized.
|
||||||
|
|
||||||
## 5.2.4
|
## 5.2.4
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
|
@ -220,9 +220,11 @@ window.initConverse = async function initConverse ({
|
|||||||
requestUpdate: function (this: any): any {
|
requestUpdate: function (this: any): any {
|
||||||
console.log('[livechatWindowTitlePlugin] updating the document title.')
|
console.log('[livechatWindowTitlePlugin] updating the document title.')
|
||||||
try {
|
try {
|
||||||
const title = this.model.getDisplayName()
|
if (this.model?.getDisplayName) {
|
||||||
if (document.title !== title) {
|
const title = this.model.getDisplayName()
|
||||||
document.title = title
|
if (document.title !== title) {
|
||||||
|
document.title = title
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('[livechatWindowTitlePlugin] Failed updating the window title', err)
|
console.error('[livechatWindowTitlePlugin] Failed updating the window title', err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user