crowdstart-analytics
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -28,7 +28,7 @@ // Generated by CoffeeScript 1.9.3 | ||
case 'script': | ||
return loadScript(this.src.url, cb); | ||
return loadScript(this.src, cb); | ||
case 'img': | ||
return loadImg(this.src.url, cb); | ||
return loadImg(this.src, cb); | ||
case 'iframe': | ||
return loadIframe(this.src.url, cb); | ||
return loadIframe(this.src, cb); | ||
} | ||
@@ -35,0 +35,0 @@ }; |
@@ -13,3 +13,3 @@ // Generated by CoffeeScript 1.9.3 | ||
iframe.style.display = 'none'; | ||
iframe.src = opts.src; | ||
iframe.src = opts.url; | ||
first = (document.getElementsByTagName('script'))[0]; | ||
@@ -16,0 +16,0 @@ first.parentNode.insertBefore(iframe, first); |
@@ -12,3 +12,3 @@ // Generated by CoffeeScript 1.9.3 | ||
img.height = 1; | ||
img.src = opts.src; | ||
img.src = opts.url; | ||
return img; | ||
@@ -15,0 +15,0 @@ }; |
@@ -11,9 +11,11 @@ // Generated by CoffeeScript 1.9.3 | ||
script.async = (ref = opts.async) != null ? ref : 1; | ||
script.src = opts.src; | ||
ref1 = opts.attrs; | ||
for (k in ref1) { | ||
v = ref1[k]; | ||
script.setAttribute(k, v); | ||
script.src = opts.url; | ||
if (opts.attrs != null) { | ||
ref1 = opts.attrs; | ||
for (k in ref1) { | ||
v = ref1[k]; | ||
script.setAttribute(k, v); | ||
} | ||
} | ||
if (opts.text) { | ||
if (opts.text != null) { | ||
script.text = '' + opts.text; | ||
@@ -20,0 +22,0 @@ } |
{ | ||
"name": "crowdstart-analytics", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Analytics support for Crowdstart.", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
148498
1945