No need of semi-colon after function declaration

This commit is contained in:
Emmanuel Engelhart 2022-02-13 13:26:54 +01:00
parent 5daab5e0f9
commit 529f549af1
No known key found for this signature in database
GPG Key ID: 120B30D020B553D3

View File

@ -255,10 +255,10 @@ function displayMenu(book) {
document.getElementsByClassName("pause-option")[0].style.display = (app.downloads[book.id] && app.downloads[book.id].status == 'active') ? "block" : "none";
document.getElementsByClassName("resume-option")[0].style.display = (app.downloads[book.id] && app.downloads[book.id].status == 'paused') ? "block" : "none";
document.getElementsByClassName("cancel-option")[0].style.display = (app.downloads[book.id]) ? "block" : "none";
};
}
function setContextMenuPosition() {
var menu = document.getElementById("menu");
menu.style.left = `${mouseX}px`;
menu.style.top = `${mouseY}px`;
};
}