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() {
|
||||
sumostart = true;
|
||||
if (pythonEnabled) {
|
||||
sumorobot.send("start:" + $("#blocklyCode").val().replace(/sumorobot./g, ""));
|
||||
sumorobot.send("start:" + $("#blocklyCode").val().replace(/sumorobot./g, "").replace(/\)/g, ", \"\")"));
|
||||
} else {
|
||||
sumorobot.send("start:" + sumocode.replace(/sumorobot./g, ""));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user