forked from marva/sumorobot-web
fix python code upload
This commit is contained in:
parent
f1ee5bdec2
commit
fabb2cf09c
@ -409,7 +409,7 @@ window.onload = function() {
|
|||||||
$(".btn-start").click(function() {
|
$(".btn-start").click(function() {
|
||||||
sumostart = true;
|
sumostart = true;
|
||||||
if (pythonEnabled) {
|
if (pythonEnabled) {
|
||||||
sumorobot.send("start:" + $("#blocklyCode").val().replace(/sumorobot./g, ""));
|
sumorobot.send("start:" + $("#blocklyCode").val().replace(/sumorobot./g, "").replace(/\)/g, ", \"\")"));
|
||||||
} else {
|
} else {
|
||||||
sumorobot.send("start:" + sumocode.replace(/sumorobot./g, ""));
|
sumorobot.send("start:" + sumocode.replace(/sumorobot./g, ""));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user