ソースを参照

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

lairaalmas 1 年間 前
コミット
9793010998
1 ファイル変更6 行追加2 行削除
  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