@nuskin/ns-util 3.102.0 → 3.102.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-util",
3
- "version": "3.102.0",
3
+ "version": "3.102.2",
4
4
  "baseURL": "/",
5
5
  "main": "src/util.js",
6
6
  "scripts": {
package/src/event.js CHANGED
@@ -605,13 +605,6 @@ if (!nuskin.events) {
605
605
  }
606
606
 
607
607
  nuskin.events = events;
608
-
609
- getValue(nuskin.events.global.CONFIGURATION_SET, () => {
610
- if (nuskin && nuskin.configuration) {
611
- metadata.CART_UPDATED.broadcast = nuskin.configuration.useMarketCarts ? 'reload' : null;
612
- }
613
- }, true);
614
-
615
608
  })();
616
609
  }
617
610
 
@@ -97,8 +97,7 @@ function getBaseUrlLocal(configOptions, runConfig) {
97
97
  baseUrl = runConfig.baseUrl || "";
98
98
  }
99
99
 
100
- // IE doesn't support endsWith so we do it the hard way.
101
- if (baseUrl.length > 0 && baseUrl[length - 1] === "/") {
100
+ if (baseUrl.length > 0 && baseUrl[baseUrl.length - 1] === "/") {
102
101
  baseUrl = baseUrl.slice(0, baseUrl.length - 1);
103
102
  }
104
103