Add timing stats reset button

This commit is contained in:
Jordan Wages 2026-01-30 15:08:33 -06:00
commit 5996a87058
4 changed files with 25 additions and 5 deletions

View file

@ -1017,6 +1017,11 @@ document.addEventListener('DOMContentLoaded', async () => {
cacheCountEl.textContent = '0';
});
document.getElementById('reset-timing').addEventListener('click', async () => {
await browser.runtime.sendMessage({ type: 'sortana:resetTimingStats' });
await refreshMaintenance();
});
function selectedCategories() {
return [...document.querySelectorAll('.transfer-category:checked')].map(el => el.value);
}