Skip to content

Commit

Permalink
Send duration only on start
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMcX committed Feb 14, 2020
1 parent 5a2b385 commit 3bc191b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webinterface/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,9 @@ function command(content) {
options["skipTo"] = getID("skipto").value;
getID("skipto").value = "0";
}
mqtt.send("1/gameOptions", JSON.stringify(options), 2, true);
if(content === "start") {
mqtt.send("1/gameOptions", JSON.stringify(options), 2, true);
}
mqtt.send("1/gameControl", content, 2, true);
}

Expand Down

0 comments on commit 3bc191b

Please sign in to comment.