1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/frontend/app/config/Config.ts

12 lines
380 B
TypeScript
Raw Normal View History

import {ConfigClass} from "../../../common/config/Config";
import {Utils} from "../../../common/Utils";
declare module ServerInject {
2016-12-27 06:36:38 +08:00
export let ConfigInject: ConfigClass;
}
2016-12-27 06:36:38 +08:00
export let Config = new ConfigClass();
if (typeof ServerInject !== "undefined" && typeof ServerInject.ConfigInject !== "undefined") {
Utils.updateKeys(Config.Client, ServerInject.ConfigInject);
}