mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-11-25 18:52:20 -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,
|
||||
initialize: function () {
|
||||
this.listenTo(app.state, 'change:title', this.handleTitle);
|
||||
if (window.macgap) {
|
||||
window.macgap.dock.badge = '';
|
||||
}
|
||||
app.desktop.updateBadge('');
|
||||
},
|
||||
events: {
|
||||
'click a[href]': 'handleLinkClick',
|
||||
@ -47,8 +45,6 @@ module.exports = HumanView.extend({
|
||||
},
|
||||
handleTitle: function (e) {
|
||||
document.title = app.state.title;
|
||||
if (window.macgap) {
|
||||
window.macgap.dock.badge = app.state.badge;
|
||||
}
|
||||
app.desktop.updateBadge(app.state.badge);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user