reworked config to dynamically adjust to staging or master config value (2nd version aftert 1st lost)
This commit is contained in:
@@ -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");
|
||||
}
|
||||
Reference in New Issue
Block a user