mirror of
https://github.com/jellyfin/jellyfin-media-player.git
synced 2024-11-23 05:59:43 +00:00
Merge pull request #601 from vcangi/bugfix/trailing-slash
Fix trailing slash when adding server causes connection faliure.
This commit is contained in:
commit
2949fc34fa
@ -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