mirror of
https://github.com/tubearchivist/tubearchivist.git
synced 2024-12-23 02:10:14 +00:00
fix lint
This commit is contained in:
parent
ddfab4a341
commit
4c681d813d
@ -160,12 +160,12 @@ function dlPending() {
|
||||
}, 500);
|
||||
}
|
||||
|
||||
function addToQueue(autostart=false) {
|
||||
function addToQueue(autostart = false) {
|
||||
let textArea = document.getElementById('id_vid_url');
|
||||
if (textArea.value === '') {
|
||||
return
|
||||
return;
|
||||
}
|
||||
let toPost = {data: [{youtube_id: textArea.value, status: 'pending'}]};
|
||||
let toPost = { data: [{ youtube_id: textArea.value, status: 'pending' }] };
|
||||
let apiEndpoint = '/api/download/';
|
||||
if (autostart) {
|
||||
apiEndpoint = `${apiEndpoint}?autostart=true`;
|
||||
|
Loading…
Reference in New Issue
Block a user