update
This commit is contained in:
@@ -13,15 +13,3 @@ import './elements/ecoos-logs.js';
|
||||
|
||||
// Export the main app component
|
||||
export { EcoosApp } from './elements/ecoos-app.js';
|
||||
|
||||
// Create and mount the app when DOM is ready
|
||||
function init() {
|
||||
const app = document.createElement('ecoos-app');
|
||||
document.body.appendChild(app);
|
||||
}
|
||||
|
||||
if (document.readyState === 'loading') {
|
||||
document.addEventListener('DOMContentLoaded', init);
|
||||
} else {
|
||||
init();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user