Remove comments

This commit is contained in:
Muhammad Rais Ramadhani
2025-09-21 16:26:20 +07:00
parent 93b1098e74
commit 8dc69b9b34
3 changed files with 1 additions and 21 deletions

View File

@@ -38,7 +38,6 @@ const Manager = {
io.to(player.id).emit("game:kick")
io.to(game.manager).emit("manager:playerKicked", player.id)
// Emit updated total players to all clients in the room
io.to(game.room).emit("game:totalPlayers", game.players.length)
},

View File

@@ -85,7 +85,7 @@ const Player = {
data: { text: "Waiting for the players to answer" },
})
socket.to(game.room).emit("game:playerAnswer", game.playersAnswer.length)
// Also emit total players to keep the UI updated
io.to(game.room).emit("game:totalPlayers", game.players.length)
if (game.playersAnswer.length === game.players.length) {

View File

@@ -1,19 +0,0 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
colors: {
primary: "#ff9900",
secondary: "#1a140b",
},
},
},
safelist: ["grid-cols-4", "grid-cols-3", "grid-cols-2", {
pattern: /bg-(red|blue|yellow|green)/}],
plugins: [],
}