diff --git a/src/interface/view/index.html b/src/interface/view/index.html
index 797f485..5bc95ff 100644
--- a/src/interface/view/index.html
+++ b/src/interface/view/index.html
@@ -377,6 +377,11 @@
})
}
+ function setDefaultOutput() {
+ hideErrors();
+ setOutput(defaultOutputs[getLang()]);
+ }
+
function copyToClipboard(text) {
navigator.clipboard.writeText(text);
}
@@ -452,7 +457,7 @@
convertInput.addEventListener("input", function (e) {
if(!getCommand()) {
- setOutput(defaultOutputs[getLang()]);
+ setDefaultOutput();
}
})
@@ -467,7 +472,7 @@
if(getCommand()) {
convert();
} else {
- setOutput(defaultOutputs[getLang()]);
+ setDefaultOutput();
}
});
});
@@ -478,7 +483,7 @@
engine: createOnigurumaEngine(import('/static/shiki/wasm.js'))
});
- setOutput(defaultOutputs[getLang()]);
+ setDefaultOutput();
enableRequests();