- Joined
- Nov 12, 2021
- Messages
- 2
- Reaction score
- 0
If the MediaDeviceInfo returns an array of different cameras but the same deviceID, the options window is no longer displayed.
The error occurs in the function validate_each_keys(ctx, list, get_context, get_key) (wmr-cdn.3cdx.net/client/node_modules/svelte/internal/index.mjs line 1518) when the MediaDeviceInfo returns an array of different cameras but the same deviceID.
This can happen e.g. in Firefox when a Hello compatible webcam is used and Firefox returns the normal camera and the infrared camera function with the same deviceID.
You could do without the exception and just ignore the duplicate deviceId, then there will be no errors.
Or, you could handle it like in the previous version, where the whole thing didn't lead to any error and the IR camera was also offered.
The error occurs in the function validate_each_keys(ctx, list, get_context, get_key) (wmr-cdn.3cdx.net/client/node_modules/svelte/internal/index.mjs line 1518) when the MediaDeviceInfo returns an array of different cameras but the same deviceID.
Uncaught (in promise) Error: Cannot have duplicate keys in a keyed each
validate_each_keys index.mjs:1523
create_if_block_5$b wmclient.js:8511
create_else_block$f wmclient.js:8054
update wmclient.js:9518
update index.mjs:1057
flush index.mjs:1025
promise callback*schedule_update index.mjs:1000
make_dirty index.mjs:1759
ctx index.mjs:1797
open_settings wmclient.js:9805
This can happen e.g. in Firefox when a Hello compatible webcam is used and Firefox returns the normal camera and the infrared camera function with the same deviceID.
You could do without the exception and just ignore the duplicate deviceId, then there will be no errors.
Or, you could handle it like in the previous version, where the whole thing didn't lead to any error and the IR camera was also offered.