Skip to content

Commit

Permalink
fix(examples): missing share screen enabled flag
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrious committed Mar 20, 2023
1 parent 4281b7d commit f86f8b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/mobx/src/stores/share-screen.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ export class MyShareScreen {
throw new Error("remote screen video track already exists");
}

this.enabled = true;

if (this._pTogglingShareScreen) {
await this._pTogglingShareScreen;
}
Expand All @@ -64,6 +66,8 @@ export class MyShareScreen {
}

async disable() {
this.enabled = false;

if (this._pTogglingShareScreen) {
await this._pTogglingShareScreen;
}
Expand Down

0 comments on commit f86f8b2

Please sign in to comment.