Fix rate-limiting when setting options from options page

This commit is contained in:
Ajay 2024-03-07 17:20:23 -05:00
parent 63d3309605
commit e9b7abd219
2 changed files with 3 additions and 4 deletions

@ -1 +1 @@
Subproject commit 8c0385deb54414bf5436e4a1a59e1a87f3a5f41e
Subproject commit 036086403f675b8fea0e22065f26ba534e351562

View file

@ -286,7 +286,7 @@ async function init() {
break;
case "resetToDefault":
Config.resetToDefault();
window.location.reload();
setTimeout(() => window.location.reload(), 200);
break;
}
});
@ -632,8 +632,7 @@ async function setTextOption(option: string, element: HTMLElement, value: string
await invidiousOnClick(checkbox, "supportInvidious");
}
window.location.reload();
setTimeout(() => window.location.reload(), 200);
} catch (e) {
alert(chrome.i18n.getMessage("incorrectlyFormattedOptions"));
}