forked from marva/sumorobot-web
fix python code upload
This commit is contained in:
@@ -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, ""));
|
||||
}
|
||||
|
Reference in New Issue
Block a user