FIX: Do not override all title elements with page title
This is redudant too, setting document.title is sufficient.
This commit is contained in:
parent
b45142ef79
commit
5a3350cd76
|
@ -56,12 +56,6 @@ const Discourse = Application.extend(FocusEvent, {
|
||||||
_titleChanged() {
|
_titleChanged() {
|
||||||
let title = this._docTitle || Discourse.SiteSettings.title;
|
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 displayCount = this.displayCount;
|
||||||
let dynamicFavicon = this.currentUser && this.currentUser.dynamic_favicon;
|
let dynamicFavicon = this.currentUser && this.currentUser.dynamic_favicon;
|
||||||
if (displayCount > 0 && !dynamicFavicon) {
|
if (displayCount > 0 && !dynamicFavicon) {
|
||||||
|
|
Loading…
Reference in New Issue