()
| 5 | import { getDefaultFontLoading } from "./config/Fonts.js"; |
| 6 | |
| 7 | const insertFontFace = () => { |
| 8 | const openUI5Support = getFeature<typeof OpenUI5Support>("OpenUI5Support"); |
| 9 | |
| 10 | // Only set the main font if there is no OpenUI5 support, or there is, but OpenUI5 is not loaded |
| 11 | if ((!openUI5Support || !openUI5Support.isOpenUI5Detected())) { |
| 12 | insertMainFontFace(); |
| 13 | } |
| 14 | }; |
| 15 | |
| 16 | const insertMainFontFace = () => { |
| 17 | const hasFontStyles = document.querySelector("head>style[data-ui5-font-face]"); |
no test coverage detected
searching dependent graphs…