FIX: Do not override all title elements with page title

This is redudant too, setting document.title is sufficient.
This commit is contained in:
Penar Musaraj 2020-04-24 10:14:41 -04:00
parent b45142ef79
commit 5a3350cd76
1 changed files with 0 additions and 6 deletions

View File

@ -56,12 +56,6 @@ const Discourse = Application.extend(FocusEvent, {
_titleChanged() {
let title = this._docTitle || Discourse.SiteSettings.title;
// if we change this we can trigger changes on document.title
// only set if changed.
if ($("title").text() !== title) {
$("title").text(title);
}
let displayCount = this.displayCount;
let dynamicFavicon = this.currentUser && this.currentUser.dynamic_favicon;
if (displayCount > 0 && !dynamicFavicon) {