mod-build 3.7.5 → 3.7.7-beta.1
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,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.7.7
|
|
4
|
+
|
|
5
|
+
- Adding `isMobile` handlebars helper to determine if screen is < 768px
|
|
6
|
+
|
|
7
|
+
## 3.7.6
|
|
8
|
+
|
|
9
|
+
- Removing all the `!window.Modalytics.privacyPreferencesDetected` conditionals (as we are no longer moving forward with this integration).
|
|
10
|
+
|
|
3
11
|
## 3.7.5
|
|
4
12
|
|
|
5
13
|
- fixed trade directory name issue for section deals pages
|
package/gulp-tasks/templates.js
CHANGED
|
@@ -194,6 +194,17 @@ module.exports = function(gulp, gulpPlugins, siteSettings, siteData) {
|
|
|
194
194
|
return index;
|
|
195
195
|
}
|
|
196
196
|
},
|
|
197
|
+
// Adding helper to check if mobile (< 768px)
|
|
198
|
+
{
|
|
199
|
+
name: 'isMobile',
|
|
200
|
+
fn: function(expression, options) {
|
|
201
|
+
if (window.innerWidth < 768) {
|
|
202
|
+
return options.fn(expression);
|
|
203
|
+
} else {
|
|
204
|
+
return options.inverse(expression);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
},
|
|
197
208
|
// Loop to go through and add each attribute defined in the attributes: {} object
|
|
198
209
|
{
|
|
199
210
|
name: 'addAttributes',
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
if (window.Modalytics
|
|
1
|
+
if (window.Modalytics) {
|
|
2
2
|
var heapIsDevEnv = window.location.host.match(new RegExp('(' + ['qa.', 'staging.', 'localhost', '.local', '[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}'].join('|') + ')', 'i'));
|
|
3
3
|
// dev env id "3986615799"
|
|
4
4
|
if (!heapIsDevEnv) {
|
|
@@ -20,7 +20,7 @@ _vis_opt_queue.push(function() {
|
|
|
20
20
|
// Use the _vis_data object created above to fetch the data,
|
|
21
21
|
// key of the object is the Test ID and the value is Variation Name
|
|
22
22
|
if (_vis_counter) {
|
|
23
|
-
if (window.Modalytics &&
|
|
23
|
+
if (window.Modalytics && window.heap && window.heap.appid) {
|
|
24
24
|
heap.addUserProperties(window._vis_data);
|
|
25
25
|
}
|
|
26
26
|
}
|