]> git.cworth.org Git - lmno.games/commitdiff
Add another missing const
authorCarl Worth <cworth@cworth.org>
Mon, 4 May 2020 00:17:51 +0000 (17:17 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 4 May 2020 00:17:51 +0000 (17:17 -0700)
(Someday I'll fix things so that I can't commit non-lint-clean code.)

empires/empires-client.js

index 511527b216151a47955afc314b223703ad4dd56e..bb8a41f2fa96354aef293228846342b260833ff7 100644 (file)
@@ -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);
 }