mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 19:52:01 +03:00
c2c0d1bade
no issue - added config values as data attributes - removed inline script - removed current-user.js
17 lines
551 B
JavaScript
17 lines
551 B
JavaScript
var ConfigInitializer = {
|
|
name: 'config',
|
|
|
|
initialize: function (container, application) {
|
|
var apps = $('body').data('apps'),
|
|
fileStorage = $('body').data('filestorage');
|
|
|
|
application.register('ghost:config', {apps: apps, fileStorage: fileStorage}, {instantiate: false});
|
|
|
|
application.inject('route', 'config', 'ghost:config');
|
|
application.inject('controller', 'config', 'ghost:config');
|
|
application.inject('component', 'config', 'ghost:config');
|
|
}
|
|
};
|
|
|
|
export default ConfigInitializer;
|