(path, baseUrl)
| 13 | } |
| 14 | |
| 15 | export function getUrl(path, baseUrl) { |
| 16 | if (baseUrl) { |
| 17 | return new URL(path, baseUrl).toString(); |
| 18 | } else { |
| 19 | return new URL("../" + path, import.meta.url).toString(); |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | export async function loadImage(url) { |
| 24 | return new Promise((res, rej) => { |
no outgoing calls
no test coverage detected