fixed a logical error

This commit is contained in:
huangjx
2022-02-20 21:38:01 +08:00
parent 77f25c0ab4
commit 20b3e25369

View File

@@ -36,11 +36,11 @@ window.addEventListener('DOMContentLoaded', function () {
let url = helper.generateUrl(path);
const callback = function (parent, html, data) {
parent.innerHTML = html;
if (!data.status) {
return;
}
if (!data.status && data.error) {
if (data.error)
helper.message(data.error);
return;
}
let element = document.querySelector("#start-aria2 button");
let aria2 = element.getAttribute("data-aria2");