mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
parent
c034cb5985
commit
08f33d7e9e
1 changed files with 6 additions and 1 deletions
|
@ -97,7 +97,12 @@ function genHash(string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getTrackerHost(url) {
|
function getTrackerHost(url) {
|
||||||
return new URL(url).hostname;
|
try {
|
||||||
|
return new URL(url).hostname;
|
||||||
|
}
|
||||||
|
catch (error) {
|
||||||
|
return url;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getSyncMainDataInterval() {
|
function getSyncMainDataInterval() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue