Skip to content

Commit fb762c2

Browse files
authored
fix: plumb FieldNote through to the VM (#33)
1 parent 6e46a18 commit fb762c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/blocks.js

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

413-
// ScratchBlocks.FieldNote.playNote_ = function (noteNum, extensionId) {
414-
// vm.runtime.emit('PLAY_NOTE', noteNum, extensionId);
415-
// };
413+
ScratchBlocks.FieldNote.playNote_ = function (noteNum, extensionId) {
414+
vm.runtime.emit("PLAY_NOTE", noteNum, extensionId);
415+
};
416416

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

0 commit comments

Comments
 (0)