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

Commit 076a788

Browse files
authored
feat: enhance display of uptime by adding day indicator #1065 (#1084)
1 parent 732153b commit 076a788

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/classes/sysinfo.class.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class Sysinfo {
114114
if (uptime.hours.toString().length !== 2) uptime.hours = "0"+uptime.hours;
115115
if (uptime.minutes.toString().length !== 2) uptime.minutes = "0"+uptime.minutes;
116116

117-
document.querySelector("#mod_sysinfo > div:nth-child(2) > h2").innerHTML = uptime.days+":"+uptime.hours+":"+uptime.minutes;
117+
document.querySelector("#mod_sysinfo > div:nth-child(2) > h2").innerHTML = uptime.days + '<span style="opacity:0.5;">d</span>' + uptime.hours + '<span style="opacity:0.5;">:</span>' + uptime.minutes;
118118
}
119119
updateBattery() {
120120
window.si.battery().then(bat => {

0 commit comments

Comments
 (0)