From 4ba14f36fb7ea9a1046300ed1c296d0f847d9d58 Mon Sep 17 00:00:00 2001
From: matt <10769515+whosmatt@users.noreply.github.com>
Date: Sat, 5 Aug 2023 19:55:21 +0200
Subject: [PATCH] moved log function
---
index.html | 2 +-
js/console.js | 9 ---------
js/modframework.js | 10 ++++++++++
3 files changed, 11 insertions(+), 10 deletions(-)
delete mode 100644 js/console.js
diff --git a/index.html b/index.html
index 2111af9..de360c8 100644
--- a/index.html
+++ b/index.html
@@ -275,8 +275,8 @@
-
+
diff --git a/js/console.js b/js/console.js
deleted file mode 100644
index 04d4874..0000000
--- a/js/console.js
+++ /dev/null
@@ -1,9 +0,0 @@
-function log(message) {
- const consoleArea = document.getElementById('console');
-
- // Append the new message to the existing content and add a newline
- consoleArea.value += message + '\n';
-
- // Scroll to the bottom to show the latest message
- consoleArea.scrollTop = consoleArea.scrollHeight;
-}
\ No newline at end of file
diff --git a/js/modframework.js b/js/modframework.js
index ac816e1..feacc8e 100644
--- a/js/modframework.js
+++ b/js/modframework.js
@@ -118,6 +118,16 @@ function applyMods(firmware) {
return firmware;
}
+function log(message) {
+ const consoleArea = document.getElementById('console');
+
+ // Append the new message to the existing content and add a newline
+ consoleArea.value += message + '\n';
+
+ // Scroll to the bottom to show the latest message
+ consoleArea.scrollTop = consoleArea.scrollHeight;
+}
+
// Helper functions: