mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Don't parse the default toolbox if it doesn't exist
This commit is contained in:
parent
bc1550e1b1
commit
ce31ae9743
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ Blockly.Options = function(options) {
|
|||
var hasDisable = false;
|
||||
var hasSounds = false;
|
||||
} else {
|
||||
if (!options['toolbox']) {
|
||||
if (!options['toolbox'] && Blockly.Blocks.defaultToolbox) {
|
||||
var oParser = new DOMParser();
|
||||
var dom = oParser.parseFromString(Blockly.Blocks.defaultToolbox, 'text/xml');
|
||||
options['toolbox'] = dom.documentElement;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue