mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-11-29 04:32:15 -05:00
Update badge handling.
This commit is contained in:
parent
760af00f05
commit
cc40e9e574
@ -11,9 +11,7 @@ module.exports = HumanView.extend({
|
|||||||
template: templates.body,
|
template: templates.body,
|
||||||
initialize: function () {
|
initialize: function () {
|
||||||
this.listenTo(app.state, 'change:title', this.handleTitle);
|
this.listenTo(app.state, 'change:title', this.handleTitle);
|
||||||
if (window.macgap) {
|
app.desktop.updateBadge('');
|
||||||
window.macgap.dock.badge = '';
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
events: {
|
events: {
|
||||||
'click a[href]': 'handleLinkClick',
|
'click a[href]': 'handleLinkClick',
|
||||||
@ -47,8 +45,6 @@ module.exports = HumanView.extend({
|
|||||||
},
|
},
|
||||||
handleTitle: function (e) {
|
handleTitle: function (e) {
|
||||||
document.title = app.state.title;
|
document.title = app.state.title;
|
||||||
if (window.macgap) {
|
app.desktop.updateBadge(app.state.badge);
|
||||||
window.macgap.dock.badge = app.state.badge;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user