From 7527e49c9cd22c132cd3258bba2729fad85167ef Mon Sep 17 00:00:00 2001 From: ashley Date: Sun, 27 Apr 2025 11:39:29 +0000 Subject: [PATCH] stuff --- html/layouts/error-video.ejs | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/html/layouts/error-video.ejs b/html/layouts/error-video.ejs index 5d7e6be6..77d7cf61 100644 --- a/html/layouts/error-video.ejs +++ b/html/layouts/error-video.ejs @@ -85,13 +85,25 @@ } - <% if (description == "Poke is currently restarting - please wait 1-2 minutes..") { %> + <% const RESTART_MSG = "Poke is currently restarting - please wait 1-2 minutes.."; %> + <% if (description === RESTART_MSG) { %> + <% } else { %> + <% } %> - <% if (description == "Poke is currently restarting - please wait 1-2 minutes..") { %> + <% if (description === RESTART_MSG) { %>

502

<% } else { %>

404

@@ -114,15 +130,15 @@

<%= error %>

<%= description %>

- <% if (description == "Poke is currently restarting - please wait 1-2 minutes..") { %> -
Trying again in 10 seconds...
+ <% if (description === RESTART_MSG) { %> +
Trying again in <%= parseInt(localStorage.getItem('reloadCount') || '1', 10) > 5 ? 30 : 10 %> seconds...
<% } %>