1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-26 06:22:50 -05:00
This commit is contained in:
Anton Kesy
2026-01-08 20:10:24 +01:00
committed by GitHub
parent 033e62418a
commit f5f21e738a
7 changed files with 11 additions and 11 deletions

View File

@@ -546,7 +546,7 @@ Singleton {
if (savePrefs && typeof SessionData !== "undefined" && !isGreeterMode)
SessionData.setLightMode(light);
if (!isGreeterMode) {
// Skip with matugen becuase, our script runner will do it.
// Skip with matugen because, our script runner will do it.
if (!matugenAvailable) {
PortalService.setLightMode(light);
}

View File

@@ -1,5 +1,5 @@
.pragma library
// This exists only beacause I haven't been able to get linkColor to work with MarkdownText
// This exists only because I haven't been able to get linkColor to work with MarkdownText
// May not be necessary if that's possible tbh.
function markdownToHtml(text) {
if (!text) return "";

View File

@@ -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";

View File

@@ -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;
}