This commit is contained in:
moonkop 2025-05-04 02:06:52 +00:00 committed by GitHub
commit 7da77cdb46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -862,7 +862,9 @@ class Blocks {
// Is this block a top-level block?
if (typeof e.newParent === 'undefined') {
this._addScript(e.id);
if (!this._blocks[e.id].shadow) {
this._addScript(e.id);
}
} else {
// Remove script, if one exists.
this._deleteScript(e.id);