mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
Fix shadow block init on headless workspaces.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user