Skip to content
Snippets Groups Projects
Commit d2a5436e authored by Nils G.'s avatar Nils G.
Browse files

Use correct const in websocket.html

parent 154c2ce7
No related branches found
No related tags found
No related merge requests found
...@@ -26,9 +26,9 @@ ...@@ -26,9 +26,9 @@
break; break;
case "role": case "role":
role_definition = JSON.parse(atob(data)); role_definition = JSON.parse(atob(data));
if(playerid in role_definition) { if(PLAYER_UID in role_definition) {
role = role_definition[playerid]["role"]; role = role_definition[PLAYER_UID]["role"];
prompts = role_definition[playerid]["prompts"]; prompts = role_definition[PLAYER_UID]["prompts"];
currentPrompt = 0; currentPrompt = 0;
} }
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment