Skip to content
Permalink
Browse files
Merge remote-tracking branch 'mozilla/fix-battery'
  • Loading branch information
zalun committed May 20, 2014
2 parents b0ef368 + 26b5b3f commit 1b7ca6be546316b11680412aadd3a541e3a03a49
Showing 1 changed file with 6 additions and 6 deletions.
@@ -51,22 +51,22 @@

/* Battery */
function updateInfo(info) {
document.getElementById('level').innerText = info.level;
document.getElementById('isPlugged').innerText = info.isPlugged;
document.getElementById('level').textContent = info.level;
document.getElementById('isPlugged').textContent = info.isPlugged;
if (info.level > 5) {
document.getElementById('crit').innerText = "false";
document.getElementById('crit').textContent = "false";
}
if (info.level > 20) {
document.getElementById('low').innerText = "false";
document.getElementById('low').textContent = "false";
}
}

function batteryLow(info) {
document.getElementById('low').innerText = "true";
document.getElementById('low').textContent = "true";
}

function batteryCritical(info) {
document.getElementById('crit').innerText = "true";
document.getElementById('crit').textContent = "true";
}

function addBattery() {

0 comments on commit 1b7ca6b

Please sign in to comment.