Skip to content

Commit

Permalink
Merge pull request #601 from vcangi/bugfix/trailing-slash
Browse files Browse the repository at this point in the history
Fix trailing slash when adding server causes connection faliure.
  • Loading branch information
nvllsvm authored Apr 20, 2024
2 parents e037ea7 + 0350501 commit 2949fc3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions native/find-webclient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2949fc3

Please sign in to comment.