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. 5
      src/webui/www/private/scripts/client.js

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

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

Loading…
Cancel
Save