idmission-web-sdk 1.0.40 → 1.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,7 +48,7 @@ var tf__namespace = /*#__PURE__*/_interopNamespace(tf);
48
48
  var useResizeObserver__default = /*#__PURE__*/_interopDefaultLegacy(useResizeObserver);
49
49
  var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
50
50
 
51
- var webSdkVersion = '1.0.40';
51
+ var webSdkVersion = '1.0.42';
52
52
 
53
53
  function getPlatform() {
54
54
  return window.platform;
@@ -1486,6 +1486,9 @@ var useHighestResCaptureDevice = function useHighestResCaptureDevice(_a) {
1486
1486
  return labelMatches(deviceInfo, backUltraWideLabels);
1487
1487
  }));
1488
1488
  } else {
1489
+ if ((platform === null || platform === void 0 ? void 0 : platform.os.family) === 'Android') {
1490
+ availableCameras.reverse();
1491
+ }
1489
1492
  selectedCamera || (selectedCamera = availableCameras.find(function (deviceInfo) {
1490
1493
  return labelMatches(deviceInfo, rearLabels) && !labelMatches(deviceInfo, backUltraWideLabels);
1491
1494
  }));