(base, relativePath)
| 677 | } |
| 678 | |
| 679 | function resolveRelativeUrl(base, relativePath) { |
| 680 | try { |
| 681 | const baseUrl = base instanceof URL ? base : new URL(base, window.location.href); |
| 682 | return new URL(relativePath, baseUrl).toString(); |
| 683 | } catch (error) { |
| 684 | console.warn("Konnte relative URL nicht auflösen:", relativePath, error); |
| 685 | return null; |
| 686 | } |
| 687 | } |
| 688 | |
| 689 | function decodeBase64ToUint8Array(base64) { |
| 690 | if (typeof atob === "function") { |
no outgoing calls
no test coverage detected