Browse Source

refactor: set default moodleVar on declaration and set moodle to true

lairaalmas 1 năm trước cách đây
mục cha
commit
9793010998
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 6 2
      js/globals/globals_control.js

+ 6 - 2
js/globals/globals_control.js

@@ -37,9 +37,13 @@
  * - if true, on moodle <br>
  * - if false, on a server
  */
-const moodle = false;
+const moodle = true;
 
-let moodleVar;
+let moodleVar = {
+  hits: [0, 0, 0, 0],
+  errors: [0, 0, 0, 0],
+  time: [0, 0, 0, 0],
+};
 
 /**
  * Index of the current game in gameList array