mirror of
https://github.com/jellyfin/jellyfin-media-player.git
synced 2024-11-23 05:59:43 +00:00
Fix trailing slash when adding server causes connection faliure.
This commit is contained in:
parent
e037ea76ae
commit
0350501009
@ -5,6 +5,7 @@ async function tryConnect(server) {
|
||||
if (!server.startsWith("http")) {
|
||||
server = "http://" + server;
|
||||
}
|
||||
server = server.replace(/\/+$/, "");
|
||||
|
||||
const url = new URL("/System/Info/Public", server);
|
||||
const response = await fetch(url);
|
||||
|
Loading…
Reference in New Issue
Block a user