idmission-web-sdk 2.2.146 → 2.2.147

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.
@@ -211,7 +211,7 @@
211
211
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
212
212
  };
213
213
 
214
- var webSdkVersion = '2.2.146';
214
+ var webSdkVersion = '2.2.147';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -17871,18 +17871,7 @@
17871
17871
  }
17872
17872
  });
17873
17873
  }
17874
- if (typeof ImageCapture !== 'undefined') {
17875
- var tracks = videoStream.getTracks();
17876
- var videoCameraTrack = tracks.find(function (track) {
17877
- return track.kind === 'video';
17878
- });
17879
- if (videoCameraTrack) {
17880
- var imageCapture = new ImageCapture(videoCameraTrack);
17881
- imageCapture.takePhoto().then(onComplete)["catch"](function () {});
17882
- } else {
17883
- throw new Error('Failed to find a video feed for taking a photo');
17884
- }
17885
- } else if (videoTag) {
17874
+ if (videoTag) {
17886
17875
  var canvas = document.createElement('canvas');
17887
17876
  drawToCanvas(canvas, videoTag);
17888
17877
  canvas.toBlob(onComplete);