Muc-app: cleaning code.

This commit is contained in:
John Livingston
2024-07-29 23:26:29 +02:00
parent 074e688ed8
commit 86cac34ef3
3 changed files with 10 additions and 10 deletions

View File

@ -51,6 +51,16 @@ export class MUCApp extends CustomElement {
return ''
}
updated () {
if (this.innerText.trim() === '') {
this.classList.add('hidden') // we must do this, otherwise will have CSS side effects
} else {
this.classList.remove('hidden')
}
super.updated()
}
toggleApp () {
this.show = !this.show
if (this.sessionStorangeShowKey) {