small fix for play button

This commit is contained in:
2023-09-02 21:49:39 +02:00
parent 1c634f2678
commit 2a76fc7eea

View File

@ -83,7 +83,6 @@ export class UserAPI {
* *
* @param code - The code example to play (identifier) * @param code - The code example to play (identifier)
*/ */
let current_universe = this.app.universes[this.app.selected_universe]; let current_universe = this.app.universes[this.app.selected_universe];
this.app.exampleIsPlaying = true; this.app.exampleIsPlaying = true;
if (!current_universe.example) { if (!current_universe.example) {
@ -100,6 +99,7 @@ export class UserAPI {
? code ? code
: (this.app.selectedExample as string); : (this.app.selectedExample as string);
} }
this.play();
}; };
_stopDocExample = () => { _stopDocExample = () => {