Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 22, 2021. It is now read-only.
/edex-uiPublic archive

Commit4f1a264

Browse files
committed
fix: upgrade systeminformation battery method names -close#1113
1 parent051d223 commit4f1a264

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/classes/sysinfo.class.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ class Sysinfo {
119119
updateBattery(){
120120
window.si.battery().then(bat=>{
121121
letindicator=document.querySelector("#mod_sysinfo > div:last-child > h2");
122-
if(bat.hasbattery){
123-
if(bat.ischarging){
122+
if(bat.hasBattery){
123+
if(bat.isCharging){
124124
indicator.innerHTML="CHARGE";
125-
}elseif(bat.acconnected/*|| bat.timeremaining === -1*/){//fixes #833
125+
}elseif(bat.acConnected){
126126
indicator.innerHTML="WIRED";
127127
}else{
128128
indicator.innerHTML=bat.percent+"%";

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp