Also fix camera reloading in widget mode

This commit is contained in:
Timo authored and Robin committed 2025-06-25 15:47:56 -04:00
1 parent 73ccb38c11
commit e47a743f1e
2 files changed
+13

No files matched your search

+3
View File
@@ -355,6 +355,9 @@ export class MediaDevices {
* available device, rather than numbered identifiers. This may invoke a
* permissions pop-up, so it should only be called when there is a clear user
* intent to view the device list.
*
* This always updates the `available$` devices for each media type with the current value
* of `enumerateDevices`.
*/
public requestDeviceNames(): void {
void navigator.mediaDevices.enumerateDevices().then((result) => {