[#7] added saving to editing event

This commit is contained in:
Camille Moussu
2025-08-26 14:17:14 +02:00
parent e8a0ac41ef
commit 502b6d6783
6 changed files with 229 additions and 344 deletions
+11
View File
@@ -43,3 +43,14 @@ export function redirectTo(url: URL) {
export function getLocation() {
return window.location.href;
}
export function isValidUrl(string: string) {
let url;
try {
url = new URL(string);
} catch (_) {
return false;
}
return url;
}