Skip to content

Commit ee80f13

Browse files
authored
fix: specify the function to be used for prompting about variables (#17)
1 parent c92f244 commit ee80f13

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/containers/blocks.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ class Blocks extends React.Component {
9090
"setLocale",
9191
]);
9292
this.ScratchBlocks.dialog.setPrompt(this.handlePromptStart);
93+
this.ScratchBlocks.ScratchVariables.setPromptHandler(
94+
this.handlePromptStart
95+
);
9396
this.ScratchBlocks.statusButtonCallback =
9497
this.handleConnectionModalStart;
9598
this.ScratchBlocks.recordSoundCallback = this.handleOpenSoundRecorder;

0 commit comments

Comments
 (0)