mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 04:54:18 +00:00
parent
c034cb5985
commit
08f33d7e9e
@ -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…
x
Reference in New Issue
Block a user