diff --git a/core/src/TethrManager.ts b/core/src/TethrManager.ts index eca6005..4423463 100644 --- a/core/src/TethrManager.ts +++ b/core/src/TethrManager.ts @@ -82,12 +82,14 @@ export class TethrManager extends EventEmitter { } #emitPairedCameras() { - const cameras = [ + this.emit('pairedCameraChange', this.pairedCameras) + } + + get pairedCameras(): Tethr[] { + return [ ...this.#ptpusbCameras.values(), ...(this.#webcam ? [this.#webcam] : []), ] - - this.emit('pairedCameraChange', cameras) } /**