mod-build 3.7.29 → 3.7.30

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.7.30
4
+
5
+ - Removed the `addVwoTestAttribute` flag. The `data-vwo-test` attribute will now always be added to the `body` tag if the current session is a variation.
6
+
3
7
  ## 3.7.29
4
8
 
5
9
  - Calling modalytics.initHeapVwo after creating `window._vwo_campaignData`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "3.7.29",
3
+ "version": "3.7.30",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -13,7 +13,7 @@ window.VWO.push(['onEventReceive', 'vA', function (data) {
13
13
  if (window.Modalytics && typeof window.Modalytics.initHeapVwo === 'function' && !window.heapVwoinited) {
14
14
  window.Modalytics.initHeapVwo();
15
15
  }
16
- if (variationId != 1 && window.addVwoTestAttribute) {
16
+ if (variationId != 1) {
17
17
  // Control is assigned variation ID 1 - variations receive incremented IDs starting from 2
18
18
  const adjustedVariationId = variationId - 1;
19
19
  const vwoTestAttrValue = `${experimentId}-${adjustedVariationId}`;