File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ Use the following URL to visit documentation
3636Add the following script in your HTML page:
3737
3838``` html
39- <script src =" https://cdn.jsdelivr.net/npm/ip-geolocation-api-jquery-sdk@1.1.2 /ipgeolocation.min.js" ></script >
39+ <script src =" https://cdn.jsdelivr.net/npm/ip-geolocation-api-jquery-sdk@1.1.3 /ipgeolocation.min.js" ></script >
4040```
4141
4242## Geolocation Lookup
@@ -155,15 +155,15 @@ _ipgeolocation.getUserAgent(handleResponse, "YOUR_API_KEY");
155155Here is a sample code to use IP Geolocation API using JQuery SDK:
156156
157157``` javascript
158- < script src= " https://cdn.jsdelivr.net/npm/ip-geolocation-api-jquery-sdk@1.1.1 /ipgeolocation.min.js" >< / script>
158+ < script src= " https://cdn.jsdelivr.net/npm/ip-geolocation-api-jquery-sdk@1.1.3 /ipgeolocation.min.js" >< / script>
159159
160160< script>
161161 // On call to IPGeolocation API on each page during a user's visit, API response will be served from sessionStorage after the first page.
162162 _ipgeolocation .enableSessionStorage (true );
163163
164- var ip = sessionStorage .getItem (" ip" );
165- var country_name = sessionStorage .getItem (" country_name" );
166- var country_code2 = sessionStorage .getItem (" country_code2" );
164+ let ip = sessionStorage .getItem (" ip" );
165+ let country_name = sessionStorage .getItem (" country_name" );
166+ let country_code2 = sessionStorage .getItem (" country_code2" );
167167
168168 if (! ip || ! country_name || ! country_code2) {
169169 _ipgeolocation .makeAsyncCallsToAPI (false );
You can’t perform that action at this time.
0 commit comments