mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
Swap order of arguments on domToWorkspace.
This commit is contained in:
@@ -110,7 +110,7 @@
|
||||
}
|
||||
// Create a headless workspace.
|
||||
var workspace = new Blockly.Workspace();
|
||||
Blockly.Xml.domToWorkspace(workspace, xml);
|
||||
Blockly.Xml.domToWorkspace(xml, workspace);
|
||||
var code = Blockly.Python.workspaceToCode(workspace);
|
||||
document.getElementById('code_output').value = code;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user