From 221d3c1d7f12b3a3ef4ae4e7b6223784252fc911 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 22 Oct 2023 20:03:19 +0800 Subject: [PATCH] :loud_sound: --- app/src/protyle/breadcrumb/index.ts | 1 + app/src/protyle/upload/index.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.ts index f69deaa45..b3455ca9a 100644 --- a/app/src/protyle/breadcrumb/index.ts +++ b/app/src/protyle/breadcrumb/index.ts @@ -256,6 +256,7 @@ export class Breadcrumb { uploadMenu.querySelector("input").addEventListener("change", (event: InputEvent & { target: HTMLInputElement }) => { + console.log(event.target.files.length) if (event.target.files.length === 0) { return; } diff --git a/app/src/protyle/upload/index.ts b/app/src/protyle/upload/index.ts index 896c0cd50..4f75250ac 100644 --- a/app/src/protyle/upload/index.ts +++ b/app/src/protyle/upload/index.ts @@ -252,6 +252,7 @@ export const uploadFiles = (protyle: IProtyle, files: FileList | DataTransferIte protyle.upload.isUploading = true; xhr.onreadystatechange = () => { + console.log(xhr.readyState) if (xhr.readyState === XMLHttpRequest.DONE) { protyle.upload.isUploading = false; if (!document.body.contains(protyle.element)) {