mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Fix HMR again following previous change
This commit is contained in:
@@ -16,8 +16,11 @@ if (hotModuleReplacement) {
|
|||||||
enableProdMode();
|
enableProdMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Boot the application
|
// Boot the application, either now or when the DOM content is loaded
|
||||||
const platform = platformUniversalDynamic();
|
const platform = platformUniversalDynamic();
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
const bootApplication = () => { platform.bootstrapModule(AppModule); };
|
||||||
platform.bootstrapModule(AppModule);
|
if (document.readyState === 'complete') {
|
||||||
});
|
bootApplication();
|
||||||
|
} else {
|
||||||
|
document.addEventListener('DOMContentLoaded', bootApplication);
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user