Skip to content

Commit

Permalink
fix hcl code highlighting (#303)
Browse files Browse the repository at this point in the history
* auto re-load if module is in running state

* fix hcl code highlighting
  • Loading branch information
asiyani authored Dec 20, 2024
1 parent c84c1c4 commit ce34296
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webserver/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ function loadModule(namespace, module) {
listStatusElm.innerText = state
listStatusElm.setAttribute("module-state", state);

Prism.highlightAll();

if (state === "Running") {
// re-load module after 10sec to update status
setTimeout(function () { reLoadModule(namespace, module) }, 10000);
Expand Down

0 comments on commit ce34296

Please sign in to comment.