[#7] fixed allday implementation to prevent errors with openpaas
This commit is contained in:
@@ -44,11 +44,11 @@ export function getLocation() {
|
||||
return window.location.href;
|
||||
}
|
||||
|
||||
export function isValidUrl(string: string) {
|
||||
export function isValidUrl(string?: string) {
|
||||
let url;
|
||||
|
||||
try {
|
||||
url = new URL(string);
|
||||
url = new URL(string ?? "");
|
||||
} catch (_) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user