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.
|
||||
|
||||
### Fixes
|
||||
|
||||
* ConverseJS plugin livechatWindowTitlePlugin: Avoid errors when model is not initialized.
|
||||
|
||||
## 5.2.4
|
||||
|
||||
### Fixes
|
||||
|
@ -220,9 +220,11 @@ window.initConverse = async function initConverse ({
|
||||
requestUpdate: function (this: any): any {
|
||||
console.log('[livechatWindowTitlePlugin] updating the document title.')
|
||||
try {
|
||||
const title = this.model.getDisplayName()
|
||||
if (document.title !== title) {
|
||||
document.title = title
|
||||
if (this.model?.getDisplayName) {
|
||||
const title = this.model.getDisplayName()
|
||||
if (document.title !== title) {
|
||||
document.title = title
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
console.error('[livechatWindowTitlePlugin] Failed updating the window title', err)
|
||||
|
Loading…
Reference in New Issue
Block a user