shadow should not be top block

This commit is contained in:
moonkop 2021-04-12 16:26:46 +08:00 committed by GitHub
parent d01f04bd3e
commit de8ebaefb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -728,7 +728,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);