attachments.js: remove unused variables
This commit is contained in:
parent
a393429f01
commit
26e6e66b04
1 changed files with 1 additions and 7 deletions
|
@ -16,7 +16,7 @@ attachmentsInput.addEventListener("input", ev => {
|
|||
}
|
||||
});
|
||||
|
||||
document.body.addEventListener("drop", ev => {
|
||||
window.addEventListener("drop", ev => {
|
||||
ev.preventDefault();
|
||||
const files = ev.dataTransfer.files;
|
||||
for (let i = 0; i < files.length; i++) {
|
||||
|
@ -27,12 +27,6 @@ document.body.addEventListener("drop", ev => {
|
|||
const sendButton = document.getElementById("send-button"),
|
||||
saveButton = document.getElementById("save-button");
|
||||
|
||||
const XHR_UNSENT = 0,
|
||||
XHR_OPENED = 1,
|
||||
XHR_HEADERS_RECEIVED = 2,
|
||||
XHR_LOADING = 3,
|
||||
XHR_DONE = 4;
|
||||
|
||||
const attachmentUUIDsNode = document.getElementById("attachment-uuids");
|
||||
function updateState() {
|
||||
let complete = true;
|
||||
|
|
Loading…
Reference in a new issue