From ec2e6f41acd644ed653a7f690d3ac7115459739f Mon Sep 17 00:00:00 2001 From: Silver Kuusik Date: Fri, 17 Aug 2018 19:51:10 +0200 Subject: [PATCH] fix sending code to sumorobot --- assets/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/main.js b/assets/js/main.js index 9c65b48..8a4c1ef 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -175,7 +175,7 @@ window.addEventListener('load', function() { parsedCode = Blockly.Python.workspaceToCode(workspace).replace(/;;.{20}/g, ''); } // Escape the qoutes, replace new lines and send the code - //sumorobot.send('code', parsedCode.replace(/"/g, '\\"').replace(/\n/g, ';;')); + sumorobot.send('code', parsedCode.replace(/"/g, '\\"').replace(/\n/g, ';;')); // Split into lines of code and filter empty lines lines = Blockly.Python.workspaceToCode(workspace).split('\n').filter(Boolean); // Process the code starting from the first line