From 0ec0062182b2cde7a2b313ae6ccc501d55efbb61 Mon Sep 17 00:00:00 2001 From: Jonas Leder Date: Wed, 24 Mar 2021 23:50:27 +0100 Subject: [PATCH] get error page back working --- js/error.js | 4 ++++ public/404.php | 3 --- public/internal/500.php | 3 --- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/js/error.js b/js/error.js index 382c55d..731abbe 100644 --- a/js/error.js +++ b/js/error.js @@ -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(); } \ No newline at end of file diff --git a/public/404.php b/public/404.php index 45f4426..e11fe4d 100644 --- a/public/404.php +++ b/public/404.php @@ -56,8 +56,5 @@ if (strpos($_SERVER['HTTP_HOST'], '.onion') !== false) { ]; - \ No newline at end of file diff --git a/public/internal/500.php b/public/internal/500.php index 79fcc9a..e4c60f7 100644 --- a/public/internal/500.php +++ b/public/internal/500.php @@ -59,9 +59,6 @@ function getError500() ]; - EOF;