fix: convert stored HTTP photo URLs to base64 for map markers, add exchangerate-api to CSP

This commit is contained in:
Maurice
2026-04-01 19:40:19 +02:00
parent e9ee2d4b0d
commit 43fc4db00e
6 changed files with 198 additions and 189 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ export function isLoading(key: string): boolean {
}
// Convert image URL to base64 via canvas (CORS required — Wikimedia supports it)
function urlToBase64(url: string, size: number = 48): Promise<string | null> {
export function urlToBase64(url: string, size: number = 48): Promise<string | null> {
return new Promise(resolve => {
const img = new Image()
img.crossOrigin = 'anonymous'