Prechádzať zdrojové kódy

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

lairaalmas 1 rok pred
rodič
commit
9793010998
1 zmenil súbory, kde vykonal 6 pridanie a 2 odobranie
  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