improved user experience for novice user(including support for standalone aria2c and ytdl binaries);support for snap installation;close #19

This commit is contained in:
huangjx
2022-02-21 15:50:42 +08:00
parent 20b3e25369
commit 8e5ebdd8e7
11 changed files with 88 additions and 18 deletions

View File

@@ -178,6 +178,12 @@ const helper = {
},
getScrollTop() {
return window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;
},
showErrors(target) {
let errors = document.querySelectorAll(target);
errors.forEach(element => {
helper.message(element.getAttribute('data-error-message'), 20000);
})
}
}