summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2023-01-16 00:17:31 +0100
committerivarlovlie <git@ivarlovlie.no>2023-01-16 00:17:31 +0100
commitcb057646e818cf4058864314cc4271a38bb07942 (patch)
tree46de4231c4252d0d9032d69eded7bf0a2f97553d /src
parent494fc9d7d1f08e05e1ee196bd0746900343b51dd (diff)
downloadblob-bin-cb057646e818cf4058864314cc4271a38bb07942.tar.xz
blob-bin-cb057646e818cf4058864314cc4271a38bb07942.zip
fix: alert stops the upload from happening until it is dismissed
Diffstat (limited to 'src')
-rw-r--r--src/wwwroot/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wwwroot/index.html b/src/wwwroot/index.html
index 390ef4c..1495cf1 100644
--- a/src/wwwroot/index.html
+++ b/src/wwwroot/index.html
@@ -58,7 +58,7 @@
const fileInput = document.getElementById("file");
document.getElementById("file-form").addEventListener("submit", () => {
if (fileInput.files[0].size > 104_857_60) {
- alert("Uploading...");
+ document.querySelector("#file-form .btn").innerText = "Uploading...";
}
});
fileInput.addEventListener("change", (e) => {