diff --git a/public/scripts/main.js b/public/scripts/main.js index 0aecae5..b818382 100644 --- a/public/scripts/main.js +++ b/public/scripts/main.js @@ -2,7 +2,7 @@ import * as Terminal from "./terminal.js"; import * as Visual from "./visual.js"; document.addEventListener("DOMContentLoaded", () => { - Terminal.start(); Visual.bind(); + Terminal.start(); }); diff --git a/public/scripts/terminal.js b/public/scripts/terminal.js index ff4b2fd..9c4fe13 100644 --- a/public/scripts/terminal.js +++ b/public/scripts/terminal.js @@ -46,7 +46,7 @@ to help you feel a little more comfortable, i've prepared some commands for you: const foreground = localStorage.getItem("foreground"); const background = localStorage.getItem("background"); if (foreground && background) { - set_colours(foreground, background); + window.set_colours(foreground, background); } if (localStorage.getItem("lcd")) { @@ -264,3 +264,4 @@ function handle_paste(event) { text: paste, }); content.scrollTop = content.scrollHeight - content.offsetHeight; +}