Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit 4e8e513

Browse files
committed
🚑 Hotfix lat/lon for v1.1.2
1 parent ed645eb commit 4e8e513

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/classes/locationGlobe.class.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ class LocationGlobe {
8383
try {
8484
let json = JSON.parse(rawData);
8585
if (json.geo) {
86-
let lat = Number(json.geo.location.latitude);
87-
let lon = Number(json.geo.location.longitude);
86+
let lat = Number(json.geo.latitude);
87+
let lon = Number(json.geo.longitude);
8888

8989
window.mods.globe.conns.push({
9090
ip,
@@ -138,7 +138,7 @@ class LocationGlobe {
138138
}
139139
updateLoc() {
140140
try {
141-
let newgeo = window.mods.netstat.ipinfo.geo.location;
141+
let newgeo = window.mods.netstat.ipinfo.geo;
142142
newgeo.latitude = Math.round(newgeo.latitude*10000)/10000;
143143
newgeo.longitude = Math.round(newgeo.longitude*10000)/10000;
144144

0 commit comments

Comments
 (0)