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', {
|
res.render(DIST_FOLDER + '/index.html', {
|
||||||
req,
|
req,
|
||||||
res,
|
res,
|
||||||
preboot: environment.universal.preboot,
|
|
||||||
async: environment.universal.async,
|
async: environment.universal.async,
|
||||||
time: environment.universal.time,
|
time: environment.universal.time,
|
||||||
baseUrl: environment.ui.nameSpace,
|
baseUrl: environment.ui.nameSpace,
|
||||||
|
@@ -1,7 +1,6 @@
|
|||||||
import { Config } from './config.interface';
|
import { Config } from './config.interface';
|
||||||
|
|
||||||
export interface UniversalConfig extends Config {
|
export interface UniversalConfig extends Config {
|
||||||
preboot: boolean;
|
|
||||||
async: boolean;
|
async: boolean;
|
||||||
time: boolean;
|
time: boolean;
|
||||||
}
|
}
|
||||||
|
@@ -121,7 +121,6 @@ export const environment: GlobalConfig = {
|
|||||||
},
|
},
|
||||||
// Angular Universal settings
|
// Angular Universal settings
|
||||||
universal: {
|
universal: {
|
||||||
preboot: true,
|
|
||||||
async: true,
|
async: true,
|
||||||
time: false
|
time: false
|
||||||
},
|
},
|
||||||
|
@@ -105,7 +105,6 @@ export const environment: Partial<GlobalConfig> = {
|
|||||||
},
|
},
|
||||||
// Angular Universal settings
|
// Angular Universal settings
|
||||||
universal: {
|
universal: {
|
||||||
preboot: true,
|
|
||||||
async: true,
|
async: true,
|
||||||
time: false
|
time: false
|
||||||
},
|
},
|
||||||
|
@@ -45,7 +45,7 @@ function addGoogleAnalytics() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// support async tag or hmr
|
// support async tag or hmr
|
||||||
if (hasValue(environment.universal) && environment.universal.preboot === false) {
|
if (environment.production === false) {
|
||||||
bootloader(main);
|
bootloader(main);
|
||||||
} else {
|
} else {
|
||||||
document.addEventListener('DOMContentLoaded', () => bootloader(main));
|
document.addEventListener('DOMContentLoaded', () => bootloader(main));
|
||||||
|
Reference in New Issue
Block a user