Provide force fallback for regeneration

This commit is contained in:
sabaimran
2023-09-12 16:35:07 -07:00
parent 9f42a1a036
commit 16874e1953
4 changed files with 20 additions and 10 deletions

View File

@@ -172,6 +172,8 @@ urlInput.addEventListener('blur', async () => {
});
const syncButton = document.getElementById('sync-data');
const syncForceToggle = document.getElementById('sync-force');
syncButton.addEventListener('click', async () => {
await window.syncDataAPI.syncData();
const regenerate = syncForceToggle.checked;
await window.syncDataAPI.syncData(regenerate);
});