mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-12 16:14:25 +03:00
a9608d77ae
Previously, the exports were somewhat random with some files declaring local variables then immediately exporting them, and others simply doing the work needed in the export itself.
16 lines
543 B
JavaScript
16 lines
543 B
JavaScript
import Notifications from 'ghost/utils/notifications';
|
|
|
|
var injectNotificationsInitializer = {
|
|
name: 'injectNotifications',
|
|
|
|
initialize: function (container, application) {
|
|
application.register('notifications:main', Notifications);
|
|
|
|
application.inject('controller', 'notifications', 'notifications:main');
|
|
application.inject('component', 'notifications', 'notifications:main');
|
|
application.inject('route', 'notifications', 'notifications:main');
|
|
}
|
|
};
|
|
|
|
export default injectNotificationsInitializer;
|