check if the paste contents is empty
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m4s
Publish Docker Image / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m0s

This commit is contained in:
Lee 2024-06-01 22:07:17 +01:00
parent 5b95ce2e33
commit 2f008730f9

View File

@ -47,6 +47,10 @@
var pasteInput = document.getElementById('paste-input');
var paste = pasteInput.value;
if (!paste || paste.trim() === ''){
return;
}
fetch('/api/upload', {
method: 'POST',
headers: {