Browse Source

Notifier: Remove open coding of tab activation.

pull/3202/head
TheGoddessInari 6 years ago
parent
commit
798ee1efb8
No known key found for this signature in database
GPG Key ID: 1209B1B7632D69A
  1. 9
      app/util/Notifier.js

9
app/util/Notifier.js

@ -44,14 +44,13 @@ Ext.define('Rambox.util.Notifier', {
var notification = new Notification(view.record.get('name'), {
body: text,
icon: view.tab.icon,
icon: view.icon,
silent: view.record.get('muted')
});
notification.onclick = function() {
ipc.send('toggleWin', true);
Ext.cq1('app-main').setActiveTab(view);
notification.onclick = function(e) {
view.showWindowAndActivateTab(e);
};
}
};
}
});

Loading…
Cancel
Save