Skip to content

Commit

Permalink
Blockly timer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sergejey committed Feb 8, 2019
1 parent 25502b8 commit 3d54f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 3rdparty/blockly/generators/php/majordomo_time.js
Expand Up @@ -81,6 +81,6 @@ Blockly.PHP['majordomo_settimeout'] = function(block) {
var delay = Blockly.PHP.valueToCode(block, 'DELAY',Blockly.PHP.ORDER_NONE) || '60';
var branch = Blockly.PHP.statementToCode(block, 'DO');
branch=branch.replace(new RegExp('\n', 'g'), '');
var code = 'setTimeOut('+timer+', "'+branch+'", (int)('+delay+'));\n';
var code = 'setTimeOut('+timer+', \''+branch+'\', (int)('+delay+'));\n';
return code;
};

0 comments on commit 3d54f11

Please sign in to comment.