From d1e5364bac8c3205b86a8c2c447430eef7bc5ad2 Mon Sep 17 00:00:00 2001
From: FlamedDogo99 <96555444+FlamedDogo99@users.noreply.github.com>
Date: Sun, 9 Jun 2024 19:39:23 -0600
Subject: [PATCH] Logger attempt 2
---
eaglermobile.user.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/eaglermobile.user.js b/eaglermobile.user.js
index 5b12782..f6c7226 100644
--- a/eaglermobile.user.js
+++ b/eaglermobile.user.js
@@ -41,9 +41,9 @@ function logManager() {
self.logger = document.getElementById('log');
console.log = function (message, options) {
if (typeof message == 'object') {
- self.logger.innerHTML = (JSON && JSON.stringify ? JSON.stringify(message) : message) + '
' + self.logger.innerHTML;
+ self.logger.innerText = (JSON && JSON.stringify ? JSON.stringify(message) : message) + '
' + self.logger.innerHTML;
} else {
- self.logger.innerHTML = message + '
' + self.logger.innerHTML;
+ self.logger.innerText = message + " " + self.logger.innerText;
}
}
}
@@ -524,7 +524,7 @@ function insertCanvasElements() {
}, false);
document.body.appendChild(coordinatesButton);
//TEMP REMOVE
- var temp = document.createElement("div");
+ var temp = document.createElement("p");
temp.id = "log";
temp.classList.add("log");
temp.style.cssText= "position: absolute; top: 8vh; margin: auto; left: 0vh; right: 0vh; height: auto; z-index:10; min-height:8vh; background:white";