Skip to content

Commit 979c331

Browse files
committed
Monitor the change of simulator
1 parent c671056 commit 979c331

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

storage-sim.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,9 @@ BlocklySimStorage.handleRequest_ = function () {
219219
var toggleBtn = workInfo.toggleBtn;
220220
var storage;
221221

222-
if (BlocklySimStorage.httpRequest_.name == 'key') {
222+
if (BlocklySimStorage.httpRequest_.name == 'simulator') {
223+
BlocklySimStorage.monitorChanges_(workInfo);
224+
} else if (BlocklySimStorage.httpRequest_.name == 'key') {
223225
if (!data.length) return;
224226

225227
data = JSON.parse(data).simulator;

0 commit comments

Comments
 (0)