mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 11:19:51 +00:00
BUGFIX: setting title to aggressively
This commit is contained in:
parent
92772bbf1d
commit
f8dec65b95
@ -33,7 +33,12 @@ window.Discourse = Ember.Application.createWithMixins(Discourse.Ajax, {
|
|||||||
title += "" + (this.get('title')) + " - ";
|
title += "" + (this.get('title')) + " - ";
|
||||||
}
|
}
|
||||||
title += Discourse.SiteSettings.title;
|
title += 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);
|
$('title').text(title);
|
||||||
|
}
|
||||||
|
|
||||||
var notifyCount = this.get('notifyCount');
|
var notifyCount = this.get('notifyCount');
|
||||||
if (notifyCount > 0 && !Discourse.User.currentProp('dynamic_favicon')) {
|
if (notifyCount > 0 && !Discourse.User.currentProp('dynamic_favicon')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user