forked from FoundKeyGang/FoundKey
client: fix null is not a valid url
This commit is contained in:
parent
46660abb6a
commit
45112158b0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue