function checkAndResolveUI5Url(sParamValue, sParameterName) {

			var aMatch = rCssUrl.exec(sParamValue);
			if (aMatch && aMatch[1]) {
				// read companion-variable, can contain a ui5:// url, or an already absolute url
				var oBodyStyle = window.getComputedStyle(document.body || document.documentElement);
				sParamValue = oBodyStyle.getPropertyValue("--" + sParameterName + "__asResolvedUrl").trim();
				if (sParamValue) {
					// JSON.parse helps us get a consistent escaping situation
					sParamValue = JSON.parse(sParamValue);
					var sResolvedUrl = LoaderExtensions.resolveUI5Url(sParamValue);
					// stringify again to preserve original escaping
					sParamValue = "url(" + JSON.stringify(sResolvedUrl) + ")";
				} else {
					Log.error("The parameter '" + sParameterName + "' contains a url, but no matching resolved-url CSS variable could be found.");
				}
			}

			return sParamValue;
		}
/**
		 * Checks the given parameter value if it contains a relative URL.
		 * If so we read a second css-variable containing a ui5:// url which needs to be resolved.
		 * @param {string} sParam parameter name
		 * @returns {string} the parameter value, if necessary a ui5://... URL is resolved
		 */
Checks the given parameter value if it contains a relative URL.
If so we read a second css-variable containing a ui5:// url which needs to be resolved.
@param {string} sParam parameter name
@returns {string} the parameter value, if necessary a ui5://... URL is resolved
Checks the given parameter value if it contains a relative URL . If so we read a second css - variable containing a ui5 : // url which needs to be resolved . @param { string } sParam parameter name @returns { string } the parameter value if necessary a ui5 : // ... URL is resolved
function checkAndResolveUI5Url(sParamValue, sParameterName) {
			var aMatch = rCssUrl.exec(sParamValue);
			if (aMatch && aMatch[1]) {
				var oBodyStyle = window.getComputedStyle(document.body || document.documentElement);
				sParamValue = oBodyStyle.getPropertyValue("--" + sParameterName + "__asResolvedUrl").trim();
				if (sParamValue) {
					sParamValue = JSON.parse(sParamValue);
					var sResolvedUrl = LoaderExtensions.resolveUI5Url(sParamValue);
					sParamValue = "url(" + JSON.stringify(sResolvedUrl) + ")";
				} else {
					Log.error("The parameter '" + sParameterName + "' contains a url, but no matching resolved-url CSS variable could be found.");
				}
			}
			return sParamValue;
		}
function checkAndResolveUI5Url ( sParamValue , sParameterName ) { var aMatch = rCssUrl . exec ( sParamValue ) ; if ( aMatch && aMatch [ 1 ] ) { var oBodyStyle = window . getComputedStyle ( document . body || document . documentElement ) ; sParamValue = oBodyStyle . getPropertyValue ( "--" + sParameterName + "__asResolvedUrl" ) . trim ( ) ; if ( sParamValue ) { sParamValue = JSON . parse ( sParamValue ) ; var sResolvedUrl = LoaderExtensions . resolveUI5Url ( sParamValue ) ; sParamValue = "url(" + JSON . stringify ( sResolvedUrl ) + ")" ; } else { Log . error ( "The parameter '" + sParameterName + "' contains a url, but no matching resolved-url CSS variable could be found." ) ; } } return sParamValue ; }
Checks the given parameter value if it contains a relative URL.
Checks the given parameter value if it contains a relative URL .
// read companion-variable, can contain a ui5:// url, or an already absolute url // JSON.parse helps us get a consistent escaping situation // stringify again to preserve original escaping