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 @@<%= description %>
- <% if (description == "Poke is currently restarting - please wait 1-2 minutes..") { %> -