mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-24 10:16:00 +03:00
parent
c034cb5985
commit
08f33d7e9e
1 changed files with 6 additions and 1 deletions
|
@ -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…
Reference in a new issue