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() {
 | 
					    $(".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, ""));
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user