mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-07 08:02:30 -06:00
@@ -27,18 +27,19 @@
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
const hash = new URI().getData("hash");
|
||||
new Request({
|
||||
url: "api/v2/torrents/addTrackers",
|
||||
method: "post",
|
||||
data: {
|
||||
hash: hash,
|
||||
urls: $("trackersUrls").value
|
||||
},
|
||||
onComplete: () => {
|
||||
fetch("api/v2/torrents/addTrackers", {
|
||||
method: "POST",
|
||||
body: new URLSearchParams({
|
||||
"hash": new URI().getData("hash"),
|
||||
"urls": $("trackersUrls").value
|
||||
})
|
||||
})
|
||||
.then((response) => {
|
||||
if (!response.ok)
|
||||
return;
|
||||
|
||||
window.parent.qBittorrent.Client.closeFrameWindow(window);
|
||||
}
|
||||
}).send();
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user