From 9fc8bd820a8c9929ac34e21dc06f71dc06c9b264 Mon Sep 17 00:00:00 2001 From: Erik Rothoff Andersson Date: Tue, 17 Nov 2015 12:59:21 +0100 Subject: [PATCH] Fix bug where first call would be ignored --- dist/glimr.min.js | 2 +- src/glimr.js | 5 +++-- test/index.php | 24 +++++++++++++++++++++--- 3 files changed, 25 insertions(+), 6 deletions(-) diff --git a/dist/glimr.min.js b/dist/glimr.min.js index bdebcbf..c9b969e 100644 --- a/dist/glimr.min.js +++ b/dist/glimr.min.js @@ -1 +1 @@ -!function(e){"use strict";var t="//pixel.glimr.io/v3/iptags/:id/",Glimr={_loadedTags:{},_loadingTags:{},JSONP:function(t,i){var n=(new Date).getTime(),o="glmrjsonp"+Math.round(n+1000001*Math.random());e[o]=function(t){i(t);try{delete e[o]}catch(n){e[o]=void 0}try{r.parentNode.removeChild(r)}catch(n){}},t+=-1===t.indexOf("?")?"?":"&",t+="callback="+o;var r=document.createElement("script");"function"==typeof r.addEventListener&&r.addEventListener("error",function(){i(!1)},!1),r.setAttribute("src",t),document.getElementsByTagName("head")[0].appendChild(r)},createCookie:function(e,t,i){var n=document.location.hostname.split("."),o=n.slice(n.length-2,n.length).join("."),r="";if(i){var a=new Date;a.setTime(a.getTime()+24*i*60*60*1e3),r="; expires="+a.toGMTString()}document.cookie=e+"="+t+r+"; path=/; domain="+o},readCookie:function(e){for(var t=e+"=",i=document.cookie.split(";"),n=0;n -

+

+
+