Browse Source

Fix WebUI crash when tracker URL is invalid

Closes #15391.
PR #15395.
adaptive-webui-19844
Chocobo1 3 years ago committed by GitHub
parent
commit
08f33d7e9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      src/webui/www/private/scripts/client.js

7
src/webui/www/private/scripts/client.js

@ -97,7 +97,12 @@ function genHash(string) { @@ -97,7 +97,12 @@ function genHash(string) {
}
function getTrackerHost(url) {
return new URL(url).hostname;
try {
return new URL(url).hostname;
}
catch (error) {
return url;
}
}
function getSyncMainDataInterval() {

Loading…
Cancel
Save