mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
Merge pull request #213 from tarling/doCommand
Fix to Blockly.doCommand to call Blockly.Realtime.isEnabled
This commit is contained in:
@@ -614,7 +614,7 @@ Blockly.setMainWorkspaceMetrics_ = function(xyRatio) {
|
||||
* @param {function()} cmdThunk A function representing the command execution.
|
||||
*/
|
||||
Blockly.doCommand = function(cmdThunk) {
|
||||
if (Blockly.Realtime.isEnabled) {
|
||||
if (Blockly.Realtime.isEnabled()) {
|
||||
Blockly.Realtime.doCommand(cmdThunk);
|
||||
} else {
|
||||
cmdThunk();
|
||||
|
||||
Reference in New Issue
Block a user