mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
call out capitalization change since it's important but easy to miss
Co-Authored-By: Karishma Chadha <kchadha@media.mit.edu>
This commit is contained in:
parent
ab715901a6
commit
edd6aafed0
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,8 @@ const mutatorTagToObject = function (dom) {
|
|||
for (const prop in dom.attribs) {
|
||||
if (prop === 'xmlns') continue;
|
||||
obj[prop] = decodeHtml(dom.attribs[prop]);
|
||||
// Note: the capitalization of block info in the following lines is important.
|
||||
// The lowercase is read in from xml which normalizes case. The VM uses camel case everywhere else.
|
||||
if (prop === 'blockinfo') {
|
||||
obj.blockInfo = JSON.parse(obj.blockinfo);
|
||||
delete obj.blockinfo;
|
||||
|
|
Loading…
Reference in a new issue