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'), { var notification = new Notification(view.record.get('name'), {
body: text, body: text,
icon: view.tab.icon, icon: view.icon,
silent: view.record.get('muted') silent: view.record.get('muted')
}); });
notification.onclick = function() { notification.onclick = function(e) {
ipc.send('toggleWin', true); view.showWindowAndActivateTab(e);
Ext.cq1('app-main').setActiveTab(view); };
}; };
}
} }
}); });

Loading…
Cancel
Save