()
| 22 | */ |
| 23 | |
| 24 | export function detectSolid(): Promise<boolean> { |
| 25 | if (document.readyState === 'complete') { |
| 26 | return check_for_solid() |
| 27 | } else { |
| 28 | return new Promise((resolve) => { |
| 29 | window.addEventListener('load', () => { |
| 30 | check_for_solid().then(resolve) |
| 31 | }) |
| 32 | }) |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | // initial version by @aquaductape |
| 37 | export async function check_for_solid(): Promise<boolean> { |
nothing calls this directly
no test coverage detected
searching dependent graphs…