Skip to content

Commit

Permalink
Fix usage of AnsiUp JS module
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Feb 14, 2024
1 parent 8353b6b commit aca0d53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class ReplaceHtmlElement extends HTMLElement {

customElements.define('kelvin-terminal-output', class extends ReplaceHtmlElement {
onConnect() {
const res = (new (AnsiUp.default)()).ansi_to_html(this.innerText);
const res = new AnsiUp().ansi_to_html(this.innerText);
this.innerHTML = '<pre>' + res + '</pre>';
}
});
Expand Down

0 comments on commit aca0d53

Please sign in to comment.