Skip to content

Commit

Permalink
Rename *Changed events with *Change
Browse files Browse the repository at this point in the history
  • Loading branch information
baku89 committed Oct 10, 2023
1 parent e61a9ae commit 5625618
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TethrWebcam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export class TethrWebcam extends Tethr {

this.#liveviewEnabled = true
this.emit('liveviewStreamUpdate', this.#media)
this.emit('liveviewEnabledChanged', createReadonlyConfigDesc(true))
this.emit('liveviewEnabledChange', createReadonlyConfigDesc(true))
return {
status: 'ok',
value: this.#media,
Expand All @@ -247,7 +247,7 @@ export class TethrWebcam extends Tethr {
async stopLiveview(): Promise<OperationResult> {
this.#liveviewEnabled = false
this.emit('liveviewStreamUpdate', null)
this.emit('liveviewEnabledChanged', createReadonlyConfigDesc(false))
this.emit('liveviewEnabledChange', createReadonlyConfigDesc(false))
return {status: 'ok'}
}
}

0 comments on commit 5625618

Please sign in to comment.