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

Commit 72d8890

Browse files
committed
🐛 Fix geographic coordinates displaying improperly
1 parent 8924971 commit 72d8890

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/classes/locationGlobe.class.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ class LocationGlobe {
136136
updateLoc() {
137137
try {
138138
let newgeo = window.mods.netstat.ipinfo.geo.location;
139+
newgeo.latitude = Math.round(newgeo.latitude*10000)/10000;
140+
newgeo.longitude = Math.round(newgeo.longitude*10000)/10000;
139141

140142
if (newgeo.latitude !== this.lastgeo.latitude || newgeo.longitude !== this.lastgeo.longitude) {
141143
document.querySelector("i.mod_globe_headerInfo").innerText = `${newgeo.latitude}, ${newgeo.longitude}`;

0 commit comments

Comments
 (0)