add admin ability to double card values

This commit is contained in:
ducklet 2021-03-02 20:08:28 +01:00
parent a4b0297c3f
commit 81ee2200fb
5 changed files with 22 additions and 1 deletions

View file

@ -174,6 +174,8 @@ function setup_ws() {
} else if (action === "sound" && args.sound) {
const { client_id, sound } = args
sounds[client_id] = new Audio(`sounds/${sound}.mp3`)
} else if (action === "double") {
q("#board").contentWindow.postMessage("double", "*")
}
},
)