mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Fix shadow block init on headless workspaces.
This commit is contained in:
parent
dd219d6f9a
commit
c3931df2ae
1 changed files with 3 additions and 1 deletions
|
@ -543,7 +543,9 @@ Blockly.Connection.prototype.disconnect = function() {
|
|||
} else {
|
||||
throw 'Child block does not have output or previous statement.';
|
||||
}
|
||||
blockShadow.initSvg();
|
||||
if (blockShadow.initSvg) {
|
||||
blockShadow.initSvg();
|
||||
}
|
||||
blockShadow.render(false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue