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

Function parseURLParameters

packages/base/src/InitialConfiguration.ts:148–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146};
147
148const parseURLParameters = () => {
149 const params = new URLSearchParams(getLocationSearch());
150
151 // Process "sap-*" params first
152 params.forEach((value, key) => {
153 const parts = key.split("sap-").length;
154 if (parts === 0 || parts === key.split("sap-ui-").length) {
155 return;
156 }
157
158 applyURLParam(key, value, "sap");
159 });
160
161 // Process "sap-ui-*" params
162 params.forEach((value, key) => {
163 if (!key.startsWith("sap-ui")) {
164 return;
165 }
166
167 applyURLParam(key, value, "sap-ui");
168 });
169};
170
171const normalizeThemeRootParamValue = (value: string) => {
172 const themeRoot = value.split("@")[1];

Callers 1

resetConfigurationFunction · 0.85

Calls 2

getLocationSearchFunction · 0.85
applyURLParamFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…