small fix for play button
This commit is contained in:
@ -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 = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user