Files
2026-07-13 12:34:04 +08:00

32 lines
647 B
JavaScript

'use strict';
const {
mountDashboardRuntime: appMountDashboardRuntime,
} = globalThis.TabHarborDashboardRuntime || {};
const {
ready: appI18nReady,
} = globalThis.TabHarborI18n || {};
const {
TabHarborConfigReady: appConfigReady,
} = globalThis;
async function initializeApp() {
if (!appMountDashboardRuntime) {
throw new Error('Tab Harbor dashboard runtime is unavailable');
}
if (appConfigReady && typeof appConfigReady.then === 'function') {
await appConfigReady;
}
if (appI18nReady && typeof appI18nReady.then === 'function') {
await appI18nReady;
}
await appMountDashboardRuntime();
}
initializeApp();