Skip to content

Commit 5da480f

Browse files
committed
don't allow broken execute tab
1 parent f272f65 commit 5da480f

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/webpage/executeTab/etab.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ class Etab {
8484
updateSpeed();
8585
};
8686
}
87+
isReady() {
88+
return !!this.sys;
89+
}
8790
stop() {
8891
this.stopped = true;
8992
this.changeButtonStates();

src/webpage/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ editButton.onclick = () => {
366366
editArea();
367367
};
368368
executeButton.onclick = () => {
369-
executeArea();
369+
if (system.isReady()) executeArea();
370370
};
371371
let system = new Etab();
372372

0 commit comments

Comments
 (0)