diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/header.ejs | 4 | ||||
-rw-r--r-- | views/profile.ejs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/views/header.ejs b/views/header.ejs index 9e101dd..3af1a8b 100644 --- a/views/header.ejs +++ b/views/header.ejs @@ -2,7 +2,7 @@ <html> <head> <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1"> -<% if (typeof refresh != 'undefined' && refresh > 0) { %><meta http-equiv="refresh" content="<%= refresh %>"><% } %> +<% if (typeof refresh !== 'undefined' && refresh > 0) { %><meta http-equiv="refresh" content="<%= refresh %>"><% } %> <link rel="icon" href="/images/rally-the-troops.png"> <link rel="stylesheet" href="/fonts/fonts.css"> <link rel="stylesheet" href="/style.css"> @@ -26,7 +26,7 @@ <div class="main"> <h1><%= title %></h1> <% - if (typeof message != 'undefined' && message.length > 0) { + if (typeof message !== 'undefined' && message.length > 0) { %><p class="error"><%= Array.isArray(message) ? message.join("\n") : message %></p><% } %> diff --git a/views/profile.ejs b/views/profile.ejs index 74843f3..8d03234 100644 --- a/views/profile.ejs +++ b/views/profile.ejs @@ -89,7 +89,7 @@ Your mail address is <%= user.mail %>. </table> <% } %> -<% if (open_games.length == 0 && active_games.length == 0 && finished_games.length == 0) { %> +<% if (open_games.length === 0 && active_games.length === 0 && finished_games.length === 0) { %> <p> You don't have any current or finished games. <% } %> |