From 5625618dc581f7c9bda1c848c168be383a780043 Mon Sep 17 00:00:00 2001 From: Baku Hashimoto Date: Tue, 10 Oct 2023 12:16:22 +0900 Subject: [PATCH] Rename *Changed events with *Change --- src/TethrWebcam.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TethrWebcam.ts b/src/TethrWebcam.ts index 48c0e8c..a0b1829 100644 --- a/src/TethrWebcam.ts +++ b/src/TethrWebcam.ts @@ -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, @@ -247,7 +247,7 @@ export class TethrWebcam extends Tethr { async stopLiveview(): Promise { this.#liveviewEnabled = false this.emit('liveviewStreamUpdate', null) - this.emit('liveviewEnabledChanged', createReadonlyConfigDesc(false)) + this.emit('liveviewEnabledChange', createReadonlyConfigDesc(false)) return {status: 'ok'} } }