mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-13 06:49:19 -04:00
embed extension blockInfo into block XML
This commit is contained in:
parent
bd1aaecdf3
commit
0247447792
1 changed files with 3 additions and 1 deletions
|
@ -1127,7 +1127,9 @@ class Runtime extends EventEmitter {
|
|||
++outLineNum;
|
||||
}
|
||||
|
||||
const blockXML = `<block type="${extendedOpcode}">${context.inputList.join('')}</block>`;
|
||||
const mutation = blockInfo.isDynamic ? `<mutation blockInfo="${xmlEscape(JSON.stringify(blockInfo))}"/>` : '';
|
||||
const inputs = context.inputList.join('');
|
||||
const blockXML = `<block type="${extendedOpcode}">${mutation}${inputs}</block>`;
|
||||
|
||||
return {
|
||||
info: context.blockInfo,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue