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

Commit 701ba1e

Browse files
committed
Slimming settings file & revert map title
1 parent b5915ad commit 701ba1e

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

src/_boot.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ if (!fs.existsSync(settingsFile)) {
5555
shell: (process.platform === "win32") ? "powershell.exe" : "bash",
5656
cwd: electron.app.getPath("userData"),
5757
keyboard: "en-US",
58-
theme: "tron",
59-
lang: "en",
60-
pingAddr: "1.1.1.1"
58+
theme: "tron"
6159
}));
6260
}
6361

src/classes/locationGlobe.class.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class LocationGlobe {
1313
this.parent = document.getElementById(parentId);
1414
this.parent.innerHTML += `<div id="mod_globe">
1515
<div id="mod_globe_innercontainer">
16-
<h1>WORLD VIEW<i class="mod_globe_location">GLOBAL NETWORK MAP</i></h1>
16+
<h1>WORLD VIEW<i>GLOBAL NETWORK MAP</i></h1>
1717
<h2>ENDPOINT LAT/LON<i class="mod_globe_headerInfo">0.0000, 0.0000</i></h2>
1818
<div id="mod_globe_canvas_placeholder"></div>
1919
</div>
@@ -138,14 +138,13 @@ class LocationGlobe {
138138
}
139139
updateLoc() {
140140
try {
141-
let lang = window.settings.lang;
142-
let geo = window.mods.netstat.ipinfo.geo;
143-
let newgeo = geo.location;
141+
let newgeo = window.mods.netstat.ipinfo.geo.location;
144142
newgeo.latitude = Math.round(newgeo.latitude*10000)/10000;
145143
newgeo.longitude = Math.round(newgeo.longitude*10000)/10000;
146144

147145
if (newgeo.latitude !== this.lastgeo.latitude || newgeo.longitude !== this.lastgeo.longitude) {
148146
document.querySelector("i.mod_globe_headerInfo").innerText = `${newgeo.latitude}, ${newgeo.longitude}`;
147+
149148
this.globe.pins.forEach(pin => {
150149
pin.remove();
151150
});
@@ -162,8 +161,6 @@ class LocationGlobe {
162161
}
163162

164163
this.lastgeo = newgeo;
165-
document.querySelector("i.mod_globe_location").innerText = `${geo.country.names[lang]}`;
166-
document.querySelector("i.mod_globe_location").innerText +=`,${geo.city.names[lang]}`
167164
} catch(e) {
168165
document.querySelector("i.mod_globe_headerInfo").innerText = "UNKNOWN";
169166
}

src/classes/netstat.class.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class Netstat {
8989
});
9090
}
9191

92-
this.si.inetLatency(window.settings.pingAddr, (data) => {
92+
this.si.inetLatency(window.settings.pingAddr || "1.1.1.1", (data) => {
9393
let ping;
9494
if (data === -1) {
9595
ping = "--ms";

0 commit comments

Comments
 (0)