import {PublicConfigClass} from './ConfigClass'; import {WebConfigLoader} from 'typeconfig/src/WebConfigLoader'; declare module ServerInject { export const ConfigInject: PublicConfigClass; } export let Config = new PublicConfigClass(); if (typeof ServerInject !== 'undefined' && typeof ServerInject.ConfigInject !== 'undefined') { WebConfigLoader.loadFrontendConfig(Config.Client, ServerInject.ConfigInject); } if (Config.Client.publicUrl === '') { Config.Client.publicUrl = location.origin; }