fix python code upload

This commit is contained in:
Silver Kuusik 2018-01-05 14:15:09 +01:00
parent f1ee5bdec2
commit fabb2cf09c

View File

@ -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, ""));
}