mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
parent
b5f4afabe0
commit
5fd6e18390
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