mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
fix typos (#1304)
This commit is contained in:
@@ -677,12 +677,12 @@ Singleton {
|
||||
if (!info) {
|
||||
details = "Network information not found or network not available.";
|
||||
} else {
|
||||
details += "Inteface: " + info.iface + "\\n";
|
||||
details += "Interface: " + info.iface + "\\n";
|
||||
details += "Driver: " + info.driver + "\\n";
|
||||
details += "MAC Addr: " + info.hwAddr + "\\n";
|
||||
details += "Speed: " + info.speed + " Mb/s\\n\\n";
|
||||
|
||||
details += "IPv4 informations:\\n";
|
||||
details += "IPv4 information:\\n";
|
||||
|
||||
for (const ip4 of info.IPv4s.ips) {
|
||||
details += " IPv4 address: " + ip4 + "\\n";
|
||||
@@ -691,7 +691,7 @@ Singleton {
|
||||
details += " DNS: " + info.IPv4s.dns + "\\n";
|
||||
|
||||
if (info.IPv6s.ips) {
|
||||
details += "\\nIPv6 informations:\\n";
|
||||
details += "\\nIPv6 information:\\n";
|
||||
|
||||
for (const ip6 of info.IPv6s.ips) {
|
||||
details += " IPv6 address: " + ip6 + "\\n";
|
||||
|
||||
@@ -341,11 +341,11 @@ Singleton {
|
||||
};
|
||||
}
|
||||
|
||||
function formatTemp(celcius, includeUnits = true, unitsShort = true) {
|
||||
if (celcius == null) {
|
||||
function formatTemp(celsius, includeUnits = true, unitsShort = true) {
|
||||
if (celsius == null) {
|
||||
return null;
|
||||
}
|
||||
const value = SettingsData.useFahrenheit ? Math.round(celcius * (9 / 5) + 32) : celcius;
|
||||
const value = SettingsData.useFahrenheit ? Math.round(celsius * (9 / 5) + 32) : celsius;
|
||||
const unit = unitsShort ? "°" : (SettingsData.useFahrenheit ? "°F" : "°C");
|
||||
return includeUnits ? value + unit : value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user