Skip to content

Commit

Permalink
html code editor updates the renderer when playground responds (#2)
Browse files Browse the repository at this point in the history
* html code editor updates the renderer when playground responds

* updateText rather than full renderer
  • Loading branch information
Quarkz14 authored Jun 3, 2024
1 parent 1a38180 commit cc7df7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions public/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ async function compileAndRunCode() {
const formattedHTML = html_beautify(data.Events[0].Message);
htmlCodeEditor.setValue(formattedHTML);
document.getElementById("render").innerHTML = formattedHTML;
htmlCodeEditor.VirtualRenderer().updateText();
runButton.classList.toggle("loading");
});

Expand Down

0 comments on commit cc7df7a

Please sign in to comment.