(name: string, value = "")
| 52 | }; |
| 53 | |
| 54 | const hasStyle = (name: string, value = ""): boolean => { |
| 55 | if (isSSR) { |
| 56 | return true; |
| 57 | } |
| 58 | |
| 59 | return !!document.adoptedStyleSheets.find(sh => (sh as Record<string, any>)._ui5StyleId === getStyleId(name, value)); |
| 60 | }; |
| 61 | |
| 62 | const removeStyle = (name: string, value = "") => { |
| 63 | document.adoptedStyleSheets = document.adoptedStyleSheets.filter(sh => (sh as Record<string, any>)._ui5StyleId !== getStyleId(name, value)); |
no test coverage detected
searching dependent graphs…