mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-30 20:07:52 +08:00
non leaders cant click on settings anymore
This commit is contained in:
parent
7f8e04d79d
commit
249bf519d4
1 changed files with 9 additions and 7 deletions
|
|
@ -1559,13 +1559,15 @@ $(document).on(
|
|||
"click",
|
||||
".pageTribe .lobby .currentSettings .groups .group",
|
||||
(e) => {
|
||||
let commands = eval($(e.currentTarget).attr("commands"));
|
||||
let func = $(e.currentTarget).attr("function");
|
||||
if (commands != undefined) {
|
||||
currentCommands.push(commands);
|
||||
showCommandLine();
|
||||
} else if (func != undefined) {
|
||||
eval(func);
|
||||
if (MP.room.isLeader) {
|
||||
let commands = eval($(e.currentTarget).attr("commands"));
|
||||
let func = $(e.currentTarget).attr("function");
|
||||
if (commands != undefined) {
|
||||
currentCommands.push(commands);
|
||||
showCommandLine();
|
||||
} else if (func != undefined) {
|
||||
eval(func);
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue