Fix HMR again following previous change
This commit is contained in:
parent
41f1f6fe82
commit
cd18489f00
|
|
@ -16,8 +16,11 @@ if (hotModuleReplacement) {
|
|||
enableProdMode();
|
||||
}
|
||||
|
||||
// Boot the application
|
||||
// Boot the application, either now or when the DOM content is loaded
|
||||
const platform = platformUniversalDynamic();
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
platform.bootstrapModule(AppModule);
|
||||
});
|
||||
const bootApplication = () => { platform.bootstrapModule(AppModule); };
|
||||
if (document.readyState === 'complete') {
|
||||
bootApplication();
|
||||
} else {
|
||||
document.addEventListener('DOMContentLoaded', bootApplication);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue