removed duplicate code related to download queue

This commit is contained in:
huangjx
2022-04-24 15:38:09 +08:00
parent 71a015e10e
commit 507b43ca3b
3 changed files with 33 additions and 73 deletions

View File

@@ -267,6 +267,15 @@ const helper = {
},
redirect(url) {
window.location.href = url;
},
getContentTableType() {
let container = document.getElementById("ncdownloader-table-wrapper");
return container.getAttribute("type");
},
setContentTableType(name) {
let container = document.getElementById("ncdownloader-table-wrapper");
container.setAttribute("type", name);
container.className = "table " + name;
}
}