Skip to content

Commit

Permalink
Fix https issue
Browse files Browse the repository at this point in the history
  • Loading branch information
forsbergplustwo committed Sep 21, 2023
1 parent de83199 commit 4f46e75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/javascript/controllers/globe_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ export default class extends Controller {
// HELPER FUNCTIONS

async setUserLocation() {
// Using http://ip-api.com/json/
const response = await get("http://ip-api.com/json/?fields=countryCode");
// Using https://ip-api.com/json/
const response = await get("https://ip-api.com/json/?fields=countryCode");
if (response.ok) {
const locationData = await response.json;
this.myLocationValue = locationData.countryCode;
Expand Down

0 comments on commit 4f46e75

Please sign in to comment.