mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
removing proboot option from config
This commit is contained in:
@@ -165,7 +165,6 @@ function ngApp(req, res) {
|
||||
res.render(DIST_FOLDER + '/index.html', {
|
||||
req,
|
||||
res,
|
||||
preboot: environment.universal.preboot,
|
||||
async: environment.universal.async,
|
||||
time: environment.universal.time,
|
||||
baseUrl: environment.ui.nameSpace,
|
||||
|
@@ -1,7 +1,6 @@
|
||||
import { Config } from './config.interface';
|
||||
|
||||
export interface UniversalConfig extends Config {
|
||||
preboot: boolean;
|
||||
async: boolean;
|
||||
time: boolean;
|
||||
}
|
||||
|
@@ -121,7 +121,6 @@ export const environment: GlobalConfig = {
|
||||
},
|
||||
// Angular Universal settings
|
||||
universal: {
|
||||
preboot: true,
|
||||
async: true,
|
||||
time: false
|
||||
},
|
||||
|
@@ -105,7 +105,6 @@ export const environment: Partial<GlobalConfig> = {
|
||||
},
|
||||
// Angular Universal settings
|
||||
universal: {
|
||||
preboot: true,
|
||||
async: true,
|
||||
time: false
|
||||
},
|
||||
|
@@ -45,7 +45,7 @@ function addGoogleAnalytics() {
|
||||
}
|
||||
|
||||
// support async tag or hmr
|
||||
if (hasValue(environment.universal) && environment.universal.preboot === false) {
|
||||
if (environment.production === false) {
|
||||
bootloader(main);
|
||||
} else {
|
||||
document.addEventListener('DOMContentLoaded', () => bootloader(main));
|
||||
|
Reference in New Issue
Block a user