Error with the first example of the doc
sbusso opened this issue · 1 comments
sbusso commented
In the first example of the sdk console.log(ipgeolocationApi.getGeolocation());
it cant work as default params is null and then it calls getIps
from null.
usmanl commented
In the first example of the sdk
console.log(ipgeolocationApi.getGeolocation());
it cant work as default params is null and then it callsgetIps
from null.ip-geolocation-api-javascript-sdk/IPGeolocationAPI.js
Line 15 in d4452da
if(params.getIps()) {
Resolved.
As ipAddresses
is an array, so it should be an empty array by default and not the null. Please download the latest SDK and test if it works for you.