Skip to content

Commit 26ffd97

Browse files
gonfunkocwillisf
authored andcommitted
fix: plumb FieldNote through to the VM (#33)
1 parent 78c4e2e commit 26ffd97

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/scratch-gui/src/lib/blocks.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,9 @@ export default function (vm, useCatBlocks) {
313313
return ScratchBlocks.StatusButtonState.NOT_READY;
314314
};
315315

316-
// ScratchBlocks.FieldNote.playNote_ = function (noteNum, extensionId) {
317-
// vm.runtime.emit('PLAY_NOTE', noteNum, extensionId);
318-
// };
316+
ScratchBlocks.FieldNote.playNote_ = function (noteNum, extensionId) {
317+
vm.runtime.emit("PLAY_NOTE", noteNum, extensionId);
318+
};
319319

320320
// Use a collator's compare instead of localeCompare which internally
321321
// creates a collator. Using this is a lot faster in browsers that create a

0 commit comments

Comments
 (0)