diff --git a/main.js b/main.js index 0a63433..1b311c6 100644 --- a/main.js +++ b/main.js @@ -56,6 +56,7 @@ var config = { answerPreview: true, timer: 60, }; +var enabledCategories = []; // Get question categories function isCategoryEnabledByDefault(id){ @@ -188,6 +189,14 @@ io.on("connection", (socket) => { userPoints.push(0); } + enabledCategories = []; + for(var i=0; i rand(0, 100)); + // Send game data var dataUser = {usernames:userNames, questionsTotal:questionsTotal}; for(i=0; i res.json()) // Convert to JSON .then(json => {