Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function getBootloader(locals) {
return new Bootloader({
template: require('./index.html'),
platformProviders: [
{provide: ORIGIN_URL, useValue: locals.origin},
{provide: APP_BASE_HREF, useValue: locals.baseUrl},
{provide: BASE_URL, useValue: locals.baseUrl},
{provide: REQUEST_URL, useValue: '/'},
NODE_LOCATION_PROVIDERS
],
beautify: true,
async: true,
preboot: false
});
}
export function getBootloader() : Bootloader {
return new Bootloader(bootloaderConfig);
}