mirror of
https://github.com/vector-im/element-call.git
synced 2026-01-30 03:15:55 +00:00
better logging
This commit is contained in:
@@ -46,17 +46,17 @@ window.controls = {
|
||||
},
|
||||
setAvailableOutputDevices(devices: OutputDevice[]): void {
|
||||
if (!setAvailableOutputDevices$.observed)
|
||||
throw new Error("Output controls are disabled");
|
||||
throw new Error("Output controls are disabled. No setAvailableOutputDevices$ observer");
|
||||
setAvailableOutputDevices$.next(devices);
|
||||
},
|
||||
setOutputDevice(id: string): void {
|
||||
if (!setOutputDevice$.observed)
|
||||
throw new Error("Output controls are disabled");
|
||||
throw new Error("Output controls are disabled. No setOutputDevice$ observer");
|
||||
setOutputDevice$.next(id);
|
||||
},
|
||||
setOutputEnabled(enabled: boolean): void {
|
||||
if (!setOutputEnabled$.observed)
|
||||
throw new Error("Output controls are disabled");
|
||||
throw new Error("Output controls are disabled. No setOutputEnabled$ observer");
|
||||
setOutputEnabled$.next(!enabled);
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user