From: Carl Worth <cworth@cworth.org>
Date: Mon, 4 May 2020 00:17:51 +0000 (-0700)
Subject: Add another missing const
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=7da13d54894921539b424205e34bc287ea8d1064;p=empires-html

Add another missing const

(Someday I'll fix things so that I can't commit non-lint-clean code.)
---

diff --git a/empires-client.js b/empires-client.js
index 511527b..bb8a41f 100644
--- a/empires-client.js
+++ b/empires-client.js
@@ -9,7 +9,7 @@ function add_message(severity, message) {
 ${message}
 <span class="hide-button" onclick="undisplay(this.parentElement)">&times</span>
 </div>`;
-  message_area = document.getElementById('message-area');
+  const message_area = document.getElementById('message-area');
   message_area.insertAdjacentHTML('beforeend', message);
 }