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:
@@ -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);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user