Skip to content

Commit 20eef80

Browse files
committed
Updated the README to refer to v1.1.3 of this SDK
1 parent 25f3dcb commit 20eef80

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Use the following URL to visit documentation
3636
Add 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");
155155
Here 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);

0 commit comments

Comments
 (0)