mirror of
https://github.com/tubearchivist/tubearchivist
synced 2024-11-04 12:00:21 +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