Keep original <title> name when changing the title

This commit is contained in:
Pavel Djundik 2017-06-05 14:40:25 +03:00
parent b46f92c7d8
commit 571818d4c2

View File

@ -26,6 +26,8 @@ $(function() {
var sidebar = $("#sidebar, #footer");
var chat = $("#chat");
$(document.body).data("app-name", document.title);
var ignoreSortSync = false;
var pop;
@ -1012,7 +1014,7 @@ $(function() {
.addClass("active")
.trigger("show");
var title = "The Lounge";
let title = $(document.body).data("app-name");
if (chan.data("title")) {
title = chan.data("title") + " — " + title;
}