Skip to content

Commit

Permalink
chore: add todo for v11
Browse files Browse the repository at this point in the history
  • Loading branch information
maribethb committed Jan 5, 2024
1 parent 6b7cc02 commit 47c148e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/developer-tools/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ mainWorkspace.addChangeListener((e: Blockly.Events.Abstract) => {
Blockly.common.defineBlocks(
Blockly.common.createBlockDefinitionsFromJsonArray([blockDefinition]),
);

// TODO: After Blockly v11, won't need to call `initSvg` and `render` directly.
const block = previewWorkspace.newBlock(blockName);
block.initSvg();
block.render();
Expand Down

0 comments on commit 47c148e

Please sign in to comment.