mod-build 3.6.4-beta.1 → 3.6.4-beta.3

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": "mod-build",
3
- "version": "3.6.4-beta.1",
3
+ "version": "3.6.4-beta.3",
4
4
  "description": "Share components for S3 sites.",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -30,13 +30,18 @@
30
30
  if (!window.willRedirectionOccurByVWO) {
31
31
  clearTimeout(hardLimitTimer);
32
32
  try {
33
- {{ fileInclude 'node_modules/mod-build/src/scripts/vendor/heap-tracking.js' }}
34
- {{ fileInclude 'node_modules/mod-build/src/scripts/vendor/heap-vwo.js' }}
35
- if(window.Modalytics) {
36
- Modalytics.init();
37
- } else {
38
- {{ fileInclude 'node_modules/mod-build/src/scripts/vendor/heap-addeventproperties-identify.js' }}
39
- }
33
+ // flag to call Modalytics.initHeapVwo() method in site level js
34
+ window.initHeapVwo = true;
35
+
36
+ {{#unless noheap}}
37
+ {{ fileInclude 'node_modules/mod-build/src/scripts/vendor/heap-tracking.js' }}
38
+ {{ fileInclude 'node_modules/mod-build/src/scripts/vendor/heap-vwo.js' }}
39
+ if(window.Modalytics) {
40
+ Modalytics.init();
41
+ } else {
42
+ {{ fileInclude 'node_modules/mod-build/src/scripts/vendor/heap-addeventproperties-identify.js' }}
43
+ }
44
+ {{/unless}}
40
45
  {{#unless nogtm}}
41
46
  {{ fileInclude 'node_modules/mod-build/src/scripts/vendor/google-tag-manager-head.js' }}
42
47
  {{/unless}}