Merge pull request #1205 from thelounge/xpaw/no-hardcoded-title

Keep original <title> name when changing the title
This commit is contained in:
Jérémie Astori 2017-06-08 09:10:11 -04:00 committed by GitHub
commit c88a0875b6

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;
}