We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47d1bf0 commit c31b133Copy full SHA for c31b133
src/botPage/view/blockly/index.js
@@ -321,7 +321,7 @@ export default class _Blockly {
321
const xmlDoc = new DOMParser().parseFromString(blockStr, 'application/xml');
322
323
if (xmlDoc.getElementsByTagName('parsererror').length) {
324
- throw 0;
+ throw new Error();
325
}
326
} catch (err) {
327
throw createErrorAndEmit('FileLoad', unrecognisedMsg());
@@ -344,7 +344,7 @@ export default class _Blockly {
344
345
346
blocklyXml.forEach(block => {
347
- const blockType = block.attributes.type.nodeValue;
+ const blockType = block.getAttribute('type');
348
349
if (!Object.keys(Blockly.Blocks).includes(blockType)) {
350
throw createErrorAndEmit(
0 commit comments