get error page back working

This commit is contained in:
Jonas Leder 2021-03-24 23:50:27 +01:00
parent 8e1d48dc66
commit 0ec0062182
3 changed files with 4 additions and 6 deletions

View file

@ -35,4 +35,8 @@ function startNewTask() {
historyContainer = terminal.getElementsByClassName("history")[0];
promptContainer = terminal.getElementsByClassName("prompt")[0];
printTask = setInterval(writeOut, intervalTime);
}
if(document.querySelector(".terminal-window") != null){
startNewTask();
}

View file

@ -56,8 +56,5 @@ if (strpos($_SERVER['HTTP_HOST'], '.onion') !== false) {
];
</script>
<script src="/js/script.js"></script>
<script>
startNewTask();
</script>
</body>
</html>

View file

@ -59,9 +59,6 @@ function getError500()
];
</script>
<script src="/js/script.js"></script>
<script>
startNewTask();
</script>
</body>
</html>
EOF;