mirror of
https://github.com/status-im/pluto.git
synced 2025-02-24 00:18:16 +00:00
Fixed incorrect errors handling
This commit is contained in:
parent
b8de1d9df6
commit
0d5136e5b6
@ -45,7 +45,7 @@
|
||||
function clearErrors() {
|
||||
const el = document.getElementById("errors");
|
||||
el.innerHTML = '';
|
||||
el.classList.className = "";
|
||||
el.className = "";
|
||||
}
|
||||
|
||||
function displayErrors(errors) {
|
||||
@ -99,6 +99,7 @@
|
||||
`;
|
||||
var cm = CodeMirror(document.getElementById("content"));
|
||||
cm.on("change", function(c, change) {
|
||||
clearErrors();
|
||||
const read = pluto.reader.read(cm.getValue());
|
||||
const readJS = pluto.js.from_clj(read);
|
||||
displayErrors(readJS.errors);
|
||||
|
Loading…
x
Reference in New Issue
Block a user