idmission-web-sdk 1.0.241 → 1.0.242

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.
@@ -49,7 +49,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
49
49
  var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
50
50
  var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
51
51
 
52
- var webSdkVersion = '1.0.241';
52
+ var webSdkVersion = '1.0.242';
53
53
 
54
54
  function getPlatform() {
55
55
  if (typeof window === 'undefined') return;
@@ -1781,6 +1781,9 @@ var useHighestResCaptureDevice = function useHighestResCaptureDevice(_a) {
1781
1781
  console.log('availableCameras', availableCameras);
1782
1782
  }
1783
1783
  var platform = getPlatform();
1784
+ if (debugMode) {
1785
+ console.log('platformDetails', platform);
1786
+ }
1784
1787
  if (!iphoneContinuityCameraDenied && (!platform || platform.os.family === 'OS X')) {
1785
1788
  var iphoneContinuityCamera = availableCameras.find(function (deviceInfo) {
1786
1789
  return labelMatches(deviceInfo, 'iphone');
@@ -1793,6 +1796,9 @@ var useHighestResCaptureDevice = function useHighestResCaptureDevice(_a) {
1793
1796
  availableCameras = availableCameras.sort(function (a, b) {
1794
1797
  return a.label.toLowerCase().localeCompare(b.label.toLowerCase());
1795
1798
  });
1799
+ if (debugMode) {
1800
+ console.log('cameras have been sorted', availableCameras);
1801
+ }
1796
1802
  }
1797
1803
  if (preferFrontFacingCamera) {
1798
1804
  selectedCamera = availableCameras.find(function (deviceInfo) {