Merge pull request #2558 from thelounge/xpaw/chantitle-undefined
Fix undefined channel when updating title
This commit is contained in:
commit
a81cef397c
@ -104,7 +104,7 @@ function updateTitle() {
|
||||
let title = $(document.body).data("app-name");
|
||||
const chanTitle = $("#sidebar").find(".chan.active").attr("aria-label");
|
||||
|
||||
if (chanTitle.length > 0) {
|
||||
if (chanTitle && chanTitle.length > 0) {
|
||||
title = `${chanTitle} — ${title}`;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user