adaptivejs
Advanced tools
Comparing version 1.5.3 to 1.6.0
{ | ||
"name": "adaptivejs", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "requirejs-plugins": "1.0.2" |
{ | ||
"name": "adaptivejs", | ||
"version": "1.5.3", | ||
"version": "1.6.0", | ||
"description": "A framework for creating adaptive websites.", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -27,3 +27,5 @@ define([ | ||
config.ajs = function(context) { | ||
return Utils.getAjs(config.projectName, context.templateName); | ||
// Look for a template name override to send to A.js, since we'll be | ||
// validating it with analytics-validator: https://github.com/mobify/analytics-validator | ||
return Utils.getAjs(config.projectName, context.analyticsTemplateName || context.templateName, config.isDebug); | ||
}; | ||
@@ -30,0 +32,0 @@ |
@@ -42,4 +42,4 @@ define([ | ||
*/ | ||
AdaptiveUtils.getAjs = function(name, template) { | ||
var qs = template ? 'm=1&t=' + template : 't=miss'; | ||
AdaptiveUtils.getAjs = function(name, template, isDebug) { | ||
var qs = template ? 'm=1&d=' + isDebug + '&t=' + template : 't=miss'; | ||
@@ -46,0 +46,0 @@ return '<script src="//a.mobify.com/' + name + '/a.js#' + qs + '" async></script>'; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7378
633051
70