Comparing version 1.0.1 to 1.0.2
@@ -1,1 +0,1 @@ | ||
(function(){"use strict";var e=function(a){var b=a.server,i=a.domain,j=function(){fetch(b+"/pageview",{method:"POST",body:JSON.stringify({url:location.href,domain:i}),headers:{"content-type":"application/json"}})};return{pageview:j}},c=document.currentScript||document.querySelector("script[data-analybase-site]");if(c){var f=c.getAttribute("data-analybase-site"),g=c.getAttribute("data-analybase-server")||"https://api.analybase.com",d=e({server:g,domain:f});d.pageview();var h=history.pushState;history.pushState=function(){for(var a=[],b=arguments.length;b--;)a[b]=arguments[b];h.apply(void 0,a),d.pageview()},window.addEventListener("popstate",function(){d.pageview()})}})(); | ||
(function(){"use strict";var e=function(a){var b=a.server,i=a.domain,j=function(){fetch(b+"/pageview",{method:"POST",body:JSON.stringify({url:location.href,domain:i,referrer:document.referrer}),headers:{"content-type":"application/json"}})};return{pageview:j}},c=document.currentScript||document.querySelector("script[data-analybase-site]");if(c){var f=c.getAttribute("data-analybase-site"),g=c.getAttribute("data-analybase-server")||"https://api.analybase.com",d=e({server:g,domain:f});d.pageview();var h=history.pushState;history.pushState=function(){for(var a=[],b=arguments.length;b--;)a[b]=arguments[b];h.apply(void 0,a),d.pageview()},window.addEventListener("popstate",function(){d.pageview()})}})(); |
@@ -13,3 +13,4 @@ (function () { | ||
url: location.href, | ||
domain: domain | ||
domain: domain, | ||
referrer: document.referrer | ||
}), | ||
@@ -16,0 +17,0 @@ headers: { |
{ | ||
"name": "analybase", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "*.js", |
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
2294
46