@plattar/plattar-ar-adapter 1.123.4 → 1.123.5

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.
@@ -1394,7 +1394,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
1394
1394
 
1395
1395
  if (viewer) {
1396
1396
  var variationID = this.getAttribute("variation-id");
1397
- viewer.messenger.selectVariation(variationID);
1397
+
1398
+ if (variationID && viewer.messenger) {
1399
+ viewer.messenger.selectVariation(variationID);
1400
+ }
1398
1401
  }
1399
1402
 
1400
1403
  return;
@@ -1605,7 +1608,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
1605
1608
  if (viewer) {
1606
1609
  var productID = this.getAttribute("product-id");
1607
1610
  var variationID = this.getAttribute("variation-id");
1608
- viewer.messenger.selectVariation(productID, variationID);
1611
+
1612
+ if (productID && variationID && viewer.messenger) {
1613
+ viewer.messenger.selectVariation(productID, variationID);
1614
+ }
1609
1615
  }
1610
1616
 
1611
1617
  return;
@@ -2642,7 +2648,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
2642
2648
  Object.defineProperty(exports, "__esModule", {
2643
2649
  value: true
2644
2650
  });
2645
- exports["default"] = "1.123.4";
2651
+ exports["default"] = "1.123.5";
2646
2652
  }, {}],
2647
2653
  16: [function (require, module, exports) {
2648
2654
  "use strict";