Skip to content

Commit

Permalink
Change API to IPData.
Browse files Browse the repository at this point in the history
  • Loading branch information
irazasyed authored Apr 18, 2018
1 parent 0282e1e commit 76a6101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geoip-target-redirect.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
* Otherwise redirects to "All" target URL.
*/
function geoip(g){window.top.location.href=target[g.country_code]||target.All}
(function(g,e,o,i,p){i=g.createElement(e),p=g.getElementsByTagName(e)[0];i.async=0;i.src=o;p.parentNode.insertBefore(i,p)})(document,'script','https://freegeoip.net/json/?callback=geoip');
(function(g,e,o,i,p){i=g.createElement(e),p=g.getElementsByTagName(e)[0];i.async=0;i.src=o;p.parentNode.insertBefore(i,p)})(document,'script','https://api.ipdata.co/?callback=geoip');
</script>
</head>
<body>
Expand Down

0 comments on commit 76a6101

Please sign in to comment.