reworked config to dynamically adjust to staging or master config value (2nd version aftert 1st lost)

This commit is contained in:
zino
2021-05-23 12:42:35 +02:00
parent 6d40613e64
commit 8a1ce5ad03
10 changed files with 151 additions and 73 deletions

View File

@@ -94,3 +94,13 @@ export function sendCheckoutResponse(inE: any) {
config.state.cartChanged = false;
}
export function injectResources(): void {
const branch: I.TypeConfigBranch = config.branch;
const resources = config.resources[branch];
Utils.inject(resources.JSC, "js", "head");
Utils.inject(resources.CSSJSC, "css", "body");
Utils.inject(resources.CSSChild, "css", "body");
Utils.inject(resources.CSSjQueryUI, "css", "body");
}