()
| 128 | booleanMapping.set("false", false); |
| 129 | |
| 130 | const parseConfigurationScript = () => { |
| 131 | const configScript = document.querySelector("[data-ui5-config]") || document.querySelector("[data-id='sap-ui-config']"); // for backward compatibility |
| 132 | |
| 133 | let configJSON; |
| 134 | |
| 135 | if (configScript) { |
| 136 | try { |
| 137 | configJSON = JSON.parse(configScript.innerHTML); |
| 138 | } catch (err) { |
| 139 | console.warn("Incorrect data-sap-ui-config format. Please use JSON"); /* eslint-disable-line */ |
| 140 | } |
| 141 | |
| 142 | if (configJSON) { |
| 143 | initialConfig = merge(initialConfig, configJSON); |
| 144 | } |
| 145 | } |
| 146 | }; |
| 147 | |
| 148 | const parseURLParameters = () => { |
| 149 | const params = new URLSearchParams(getLocationSearch()); |
no test coverage detected
searching dependent graphs…