Comparing version 1.1.1 to 1.1.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,referrer:document.referrer}),headers:{"content-type":"application/json"}})};return{pageview:j}},c=document.currentScript||document.querySelector("script[data-analybase]");if(c){var f=c.getAttribute("data-site"),g=c.getAttribute("data-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];return d.pageview(),h.apply(void 0,a)},window.addEventListener("popstate",function(){d.pageview()})}})(); | ||
(function(){"use strict";var d=function(c){var h=c.server,i=c.domain,j=function(){fetch(h+"/pageview",{method:"POST",body:JSON.stringify({url:location.href,domain:i,referrer:document.referrer}),headers:{"content-type":"application/json"}})};return{pageview:j}},a=document.currentScript||document.querySelector("script[data-analybase]");if(a){var e=a.getAttribute("data-site"),f=a.getAttribute("data-server")||"https://api.analybase.com",b=d({server:f,domain:e});b.pageview();var g=history.pushState;history.pushState=function(){return b.pageview(),g.apply(this,arguments)},window.addEventListener("popstate",function(){b.pageview()})}})(); |
@@ -36,8 +36,5 @@ (function () { | ||
var p = history.pushState; | ||
history.pushState = function () { | ||
var args = [], len = arguments.length; | ||
while ( len-- ) args[ len ] = arguments[ len ]; | ||
history.pushState = function() { | ||
api.pageview(); | ||
return p.apply(void 0, args); | ||
return p.apply(this, arguments); | ||
}; | ||
@@ -44,0 +41,0 @@ window.addEventListener("popstate", function () { |
{ | ||
"name": "analybase", | ||
"version": "1.1.1", | ||
"version": "1.1.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
2111
44