mirror of
https://github.com/whosmatt/uvmod
synced 2024-11-22 07:04:07 +00:00
moved log function
This commit is contained in:
parent
27823402dc
commit
4ba14f36fb
@ -275,8 +275,8 @@
|
|||||||
<!-- Core plugin JavaScript-->
|
<!-- Core plugin JavaScript-->
|
||||||
|
|
||||||
<!-- Patcher JavaScript -->
|
<!-- Patcher JavaScript -->
|
||||||
<script src="js/console.js"></script>
|
|
||||||
<script src="js/fwpack.js"></script>
|
<script src="js/fwpack.js"></script>
|
||||||
|
<script src="js/qsflash.js"></script>
|
||||||
<script src="js/modframework.js"></script>
|
<script src="js/modframework.js"></script>
|
||||||
<script src="mods.js"></script>
|
<script src="mods.js"></script>
|
||||||
<script src="js/init.js"></script>
|
<script src="js/init.js"></script>
|
||||||
|
@ -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;
|
|
||||||
}
|
|
@ -118,6 +118,16 @@ function applyMods(firmware) {
|
|||||||
return 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:
|
// Helper functions:
|
||||||
|
Loading…
Reference in New Issue
Block a user