Skip to content

Commit

Permalink
added back statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamlinerm committed Oct 30, 2023
1 parent 193e47b commit 9e05868
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion firefox/popup/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ function setCheckboxesOfService(service) {
const buttons = document.querySelectorAll("#" + service + capitalizeFirstLetter(key));
// console.log(service + capitalizeFirstLetter(key), buttons);
buttons.forEach((button) => {
button.checked = settings[service][key];
if (service === "Statistics") {
if (key != "SegmentsSkipped") button.textContent = getTimeFormatted(settings[service][key]);
else button.textContent = settings[service][key];
} else button.checked = settings[service][key];
});
});
}
Expand Down

0 comments on commit 9e05868

Please sign in to comment.