From 45112158b0acdbaa5009b779cda94aafb3ca3639 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Mon, 10 Jul 2023 21:29:34 +0200 Subject: [PATCH] client: fix null is not a valid url --- packages/client/src/components/url-preview.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/url-preview.vue b/packages/client/src/components/url-preview.vue index 5403ddd63..28646e0a3 100644 --- a/packages/client/src/components/url-preview.vue +++ b/packages/client/src/components/url-preview.vue @@ -73,7 +73,7 @@ fetch(`/url?url=${encodeURIComponent(requestUrl.href)}&lang=${requestLang}`).the icon = info.icon; sitename = info.sitename; fetching = false; - if (['http:', 'https:'].includes(new URL(info.player.url).protocol)) { + if (info.player.url != null && ['http:', 'https:'].includes(new URL(info.player.url).protocol)) { player = info.player; } });