Skip to content

Commit acdfb89

Browse files
committed
make calls to ipinfo https
1 parent 0aa250a commit acdfb89

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

js/mirror.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function checkTime(i) {
125125
};
126126

127127
function getUsersIpInformation(){
128-
$.getJSON('http://ipinfo.io', function(data){
128+
$.getJSON('https://ipinfo.io', function(data){
129129
userData["ip_info"] = data;
130130
localStorage.setItem('userData',JSON.stringify(userData))
131131
})

js/setup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
var userData = JSON.parse(localStorage.getItem('userData')) || {};
22

33
function getUsersIpInformation(){
4-
$.getJSON('http://ipinfo.io', function(data){
4+
$.getJSON('https://ipinfo.io', function(data){
55
userData.location = data;
66
})
77
}
88

99
// function getUserLocation() {
10-
// request('http://ipinfo.io', function(error, response, body) {
10+
// request('https://ipinfo.io', function(error, response, body) {
1111
// if (!error && response.statusCode == 200) {
1212
// userData["ip_info"] = JSON.parse(body);
1313
// } else {

0 commit comments

Comments
 (0)