Skip to content

Commit

Permalink
fix(www): Fix video with no configured console
Browse files Browse the repository at this point in the history
Fix a null pointer exception that leads to the video not being loaded
if no console is configured.

Signed-off-by: Tobias Schaffner <[email protected]>
  • Loading branch information
TobiasSchaffner authored and chombourger committed Feb 29, 2024
1 parent e170d81 commit bb683ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mtda/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@
const storage_status = document.getElementById("storage-status-icon")

socket.on("console-output", function (data) {
term.write(data.output);
if (data.output != null) {
term.write(data.output);
}
});

socket.on("mtda-version", function (data) {
Expand Down

0 comments on commit bb683ff

Please sign in to comment.