mirror of
https://github.com/fleetbase/fleetbase.git
synced 2026-01-03 21:07:10 +00:00
- Change window.Fleetbase = appInstance (not appInstance.application) - Change setApplicationInstance(appInstance) (not appInstance.application) - appInstance IS the ApplicationInstance, not the Application class - Remove comment about RegistryService cascade
18 lines
552 B
JavaScript
18 lines
552 B
JavaScript
export function initialize(appInstance) {
|
|
// Set window.Fleetbase to the application instance for global access
|
|
// This is used by services and engines to access the root application instance
|
|
if (typeof window !== 'undefined') {
|
|
window.Fleetbase = appInstance;
|
|
}
|
|
|
|
// Look up UniverseService and set the application instance
|
|
const universeService = appInstance.lookup('service:universe');
|
|
if (universeService) {
|
|
universeService.setApplicationInstance(appInstance);
|
|
}
|
|
}
|
|
|
|
export default {
|
|
initialize
|
|
};
|