vishwam-react-ent-sdk 1.0.7 → 1.0.8

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.
@@ -628,7 +628,7 @@ function CheckLiveness(_ref) {
628
628
  var img2 = imgStr.split(',')[1];
629
629
  clearInterval(interval);
630
630
  return Promise.resolve(callLiveness(url, appId, userId, referenceId, captureType, eyesCheck, storeId, whiteBackground, expiryIn, img, img2, mimeString)).then(function (response) {
631
- response.livenessImage = img2;
631
+ response.livenessImage = img;
632
632
  response.livenessImageType = mimeString;
633
633
  getLivenessResponse(response);
634
634
  setLoading(false);
@@ -656,20 +656,10 @@ function CheckLiveness(_ref) {
656
656
  }, []);
657
657
  useEffect(function () {
658
658
  setTimeout(function () {
659
- var initModels = function initModels() {
660
- try {
661
- return Promise.resolve(nets.tinyFaceDetector.loadFromUri('https://skyc-cdn-prod.vishwamcorp.com/apis/models/')).then(function () {
662
- return Promise.resolve(nets.faceLandmark68TinyNet.loadFromUri('https://skyc-cdn-prod.vishwamcorp.com/apis/models/')).then(function () {});
663
- });
664
- } catch (e) {
665
- return Promise.reject(e);
666
- }
667
- };
668
-
669
659
  if (isMobile) {
670
660
  startCamera();
671
661
  } else {
672
- initModels();
662
+ init();
673
663
  }
674
664
  }, 500);
675
665
  }, []);