mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 22:02:11 +03:00
18 lines
650 B
JavaScript
18 lines
650 B
JavaScript
import Notifications from 'ghost/utils/notifications';
|
|
|
|
var injectNotificationsInitializer = {
|
|
name: 'injectNotifications',
|
|
before: 'authentication',
|
|
|
|
initialize: function (container, application) {
|
|
application.register('notifications:main', Notifications);
|
|
|
|
application.inject('controller', 'notifications', 'notifications:main');
|
|
application.inject('component', 'notifications', 'notifications:main');
|
|
application.inject('router', 'notifications', 'notifications:main');
|
|
application.inject('route', 'notifications', 'notifications:main');
|
|
}
|
|
};
|
|
|
|
export default injectNotificationsInitializer;
|