We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 446f47f commit c7a64deCopy full SHA for c7a64de
app/index.html
@@ -81,18 +81,17 @@
81
}
82
83
function checkInput() {
84
- if (secretInput.value.trim() === '') {
85
- showError("Secret cannot be empty");
86
- throw new Error("Secret cannot be empty");
87
- }
88
if (fileInput.files.length === 0) {
89
showError("No image file selected");
90
throw new Error("No image file selected");
91
+ if (secretInput.value.trim() === '') {
+ showError("Secret cannot be empty");
+ throw new Error("Secret cannot be empty");
+ }
92
93
94
async function showError(msg) {
95
- resetOutput();
96
errorDiv.textContent = msg;
97
errorDiv.style.display = 'block';
98
console.error(msg);
0 commit comments