idmission-web-sdk 1.0.42 → 1.0.43

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.42';
51
+ var webSdkVersion = '1.0.43';
52
52
 
53
53
  function getPlatform() {
54
54
  return window.platform;
@@ -1475,6 +1475,8 @@ var useHighestResCaptureDevice = function useHighestResCaptureDevice(_a) {
1475
1475
  if (iphoneContinuityCamera && iphoneContinuityCameraAllowed) {
1476
1476
  selectedCamera = iphoneContinuityCamera;
1477
1477
  }
1478
+ } else if ((platform === null || platform === void 0 ? void 0 : platform.os.family) === 'Android') {
1479
+ availableCameras.reverse();
1478
1480
  }
1479
1481
  if (preferFrontFacingCamera) {
1480
1482
  selectedCamera = availableCameras.find(function (deviceInfo) {
@@ -1486,9 +1488,6 @@ var useHighestResCaptureDevice = function useHighestResCaptureDevice(_a) {
1486
1488
  return labelMatches(deviceInfo, backUltraWideLabels);
1487
1489
  }));
1488
1490
  } else {
1489
- if ((platform === null || platform === void 0 ? void 0 : platform.os.family) === 'Android') {
1490
- availableCameras.reverse();
1491
- }
1492
1491
  selectedCamera || (selectedCamera = availableCameras.find(function (deviceInfo) {
1493
1492
  return labelMatches(deviceInfo, rearLabels) && !labelMatches(deviceInfo, backUltraWideLabels);
1494
1493
  }));