fixed a logical error
This commit is contained in:
@@ -36,12 +36,12 @@ window.addEventListener('DOMContentLoaded', function () {
|
|||||||
let url = helper.generateUrl(path);
|
let url = helper.generateUrl(path);
|
||||||
const callback = function (parent, html, data) {
|
const callback = function (parent, html, data) {
|
||||||
parent.innerHTML = html;
|
parent.innerHTML = html;
|
||||||
|
|
||||||
if (!data.status) {
|
if (!data.status) {
|
||||||
|
if (data.error)
|
||||||
|
helper.message(data.error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!data.status && data.error) {
|
|
||||||
helper.message(data.error);
|
|
||||||
}
|
|
||||||
let element = document.querySelector("#start-aria2 button");
|
let element = document.querySelector("#start-aria2 button");
|
||||||
let aria2 = element.getAttribute("data-aria2");
|
let aria2 = element.getAttribute("data-aria2");
|
||||||
if (!aria2) {
|
if (!aria2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user