MCPcopy Create free account
hub / github.com/UI5/webcomponents / normalizeThemeParamValue

Function normalizeThemeParamValue

packages/base/src/InitialConfiguration.ts:177–183  ·  view source on GitHub ↗
(param: string, value: string)

Source from the content-addressed store, hash-verified

175};
176
177const normalizeThemeParamValue = (param: string, value: string) => {
178 if (param === "theme" && value.includes("@")) { // the theme parameter might have @<URL-TO-THEME> in the value - strip this
179 return value.split("@")[0];
180 }
181
182 return value;
183};
184
185const applyURLParam = (key: string, value: string, paramType: string) => {
186 const lowerCaseValue = value.toLowerCase();

Callers 1

applyURLParamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…