mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-14 11:23:17 +02:00
15 lines
401 B
TypeScript
15 lines
401 B
TypeScript
import {PublicConfigClass} from "./ConfigClass";
|
|
import {WebConfigLoader} from "typeconfig/src/WebConfigLoader";
|
|
|
|
|
|
declare module ServerInject {
|
|
export const ConfigInject;
|
|
}
|
|
|
|
export let Config = new PublicConfigClass();
|
|
|
|
if (typeof ServerInject !== "undefined" && typeof ServerInject.ConfigInject !== "undefined") {
|
|
WebConfigLoader.loadFrontendConfig(Config.Client, ServerInject.ConfigInject);
|
|
}
|
|
|