Add timing stats reset button
This commit is contained in:
parent
1680ad6c30
commit
5996a87058
4 changed files with 25 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue