Parcourir la source

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

lairaalmas il y a 1 an
Parent
commit
9793010998
1 fichiers modifiés avec 6 ajouts et 2 suppressions
  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