瀏覽代碼

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