Tweaks and panel updates

This commit is contained in:
Zef Hemel
2022-05-11 20:10:45 +02:00
parent 4518476c77
commit 8c974161c3
7 changed files with 40 additions and 10 deletions
+2
View File
@@ -105,6 +105,8 @@ functions:
name: "Debug: Show Logs"
key: "Ctrl-Alt-l"
mac: "Cmd-Alt-l"
events:
- log:reload
hideBhsCommand:
path: ./debug.ts:hideBhsCommand
command:
+6
View File
@@ -73,6 +73,12 @@ export async function showLogsCommand() {
clientDiv.scrollTop = clientDiv.scrollHeight;
var serverDiv = document.getElementById("server-log");
serverDiv.scrollTop = serverDiv.scrollHeight;
if(window.reloadInterval) {
clearInterval(window.reloadInterval);
}
window.reloadInterval = setInterval(() => {
sendEvent("log:reload");
}, 1000);
`
);
}