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
Braun Patrik f53c537a9d adding client side config
Implementing search disable
2016-05-10 21:33:58 +02:00

12 lines
367 B
TypeScript

import {ConfigClass} from "../../../common/config/Config";
import {Utils} from "../../../common/Utils";
declare module ServerInject {
export var ConfigInject;
}
export var Config = new ConfigClass();
if (typeof ServerInject !== "undefined" && typeof ServerInject.ConfigInject !== "undefined") {
Utils.updateKeys(Config.Client, ServerInject.ConfigInject);
}