Skip to content

Commit

Permalink
fix(web): Скрытие ошибок предыдущей конвертации при очистке команды (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
Stivo182 committed Jan 23, 2025
1 parent e447855 commit 0e1defe
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/interface/view/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,11 @@
})
}

function setDefaultOutput() {
hideErrors();
setOutput(defaultOutputs[getLang()]);
}

function copyToClipboard(text) {
navigator.clipboard.writeText(text);
}
Expand Down Expand Up @@ -452,7 +457,7 @@

convertInput.addEventListener("input", function (e) {
if(!getCommand()) {
setOutput(defaultOutputs[getLang()]);
setDefaultOutput();
}
})

Expand All @@ -467,7 +472,7 @@
if(getCommand()) {
convert();
} else {
setOutput(defaultOutputs[getLang()]);
setDefaultOutput();
}
});
});
Expand All @@ -478,7 +483,7 @@
engine: createOnigurumaEngine(import('/static/shiki/wasm.js'))
});

setOutput(defaultOutputs[getLang()]);
setDefaultOutput();
enableRequests();
</script>
</head>
Expand Down

0 comments on commit 0e1defe

Please sign in to comment.