mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-04-11 14:54:36 -04:00
fix: add the monitor block extension to extension monitor blocks (#6)
This commit is contained in:
parent
2baf2c91b6
commit
4837dd8e8b
1 changed files with 4 additions and 1 deletions
|
@ -1293,7 +1293,10 @@ class Runtime extends EventEmitter {
|
|||
|
||||
if (blockInfo.blockType === BlockType.REPORTER) {
|
||||
if (!blockInfo.disableMonitor && context.inputList.length === 0) {
|
||||
blockJSON.checkboxInFlyout = true;
|
||||
if (!blockJSON.extensions) {
|
||||
blockJSON.extensions = [];
|
||||
}
|
||||
blockJSON.extensions.push("monitor_block");
|
||||
}
|
||||
} else if (blockInfo.blockType === BlockType.LOOP) {
|
||||
// Add icon to the bottom right of a loop block
|
||||
|
|
Loading…
Add table
Reference in a new issue