mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 10:34:15 +00:00
afford production disable preboot
This commit is contained in:
@@ -30,7 +30,9 @@ const main = () => {
|
||||
|
||||
if (environment.production) {
|
||||
enableProdMode();
|
||||
}
|
||||
|
||||
if (hasValue(environment.universal) && environment.universal.preboot) {
|
||||
return bootstrap();
|
||||
} else {
|
||||
|
||||
@@ -47,7 +49,7 @@ const main = () => {
|
||||
};
|
||||
|
||||
// support async tag or hmr
|
||||
if (hasValue(environment.universal) && environment.universal.preboot === false) {
|
||||
if (hasValue(environment.universal) && !environment.universal.preboot) {
|
||||
main();
|
||||
} else {
|
||||
document.addEventListener('DOMContentLoaded', main);
|
||||
|
Reference in New Issue
Block a user