@nuskin/ns-product-lib 2.9.0-mysitedomainfix.2 → 2.9.0-mysitedomainfix.4
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -0
- package/package.json +1 -1
- package/src/productData.js +3 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
# [2.9.0-mysitedomainfix.4](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.9.0-mysitedomainfix.3...v2.9.0-mysitedomainfix.4) (2023-06-21)
|
2
|
+
|
3
|
+
|
4
|
+
### Fix
|
5
|
+
|
6
|
+
* added shopping context checking ([dbfa1b8](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/dbfa1b8cdef76d65c3ea536c3901ae8fb2dde36f))
|
7
|
+
|
8
|
+
# [2.9.0-mysitedomainfix.3](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.9.0-mysitedomainfix.2...v2.9.0-mysitedomainfix.3) (2023-06-21)
|
9
|
+
|
10
|
+
|
11
|
+
### Update
|
12
|
+
|
13
|
+
* added hostname as condition on switching domains ([af0d628](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/af0d6289cb9c722c887f9b027b66db1cacb1dd5a))
|
14
|
+
|
1
15
|
# [2.9.0-mysitedomainfix.2](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.9.0-mysitedomainfix.1...v2.9.0-mysitedomainfix.2) (2023-06-21)
|
2
16
|
|
3
17
|
|
package/package.json
CHANGED
package/src/productData.js
CHANGED
@@ -57,7 +57,9 @@ const ProductData = {
|
|
57
57
|
searchEquinoxProduct: async function (skus, locale, config) {
|
58
58
|
let skuFilter = [];
|
59
59
|
|
60
|
-
|
60
|
+
const shoppingContext = window && window.aem && window.aem.ShoppingContext && window.aem.ShoppingContext.getShoppingContext();
|
61
|
+
|
62
|
+
if ((shoppingContext && shoppingContext.context === 'storefront') || window.location.hostname.includes(".mynuskin.com")) {
|
61
63
|
config.API_Base_URLs = config.MySite_API_Base_URLs
|
62
64
|
}
|
63
65
|
|