mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
Fix rate-limiting when setting options from options page
This commit is contained in:
parent
63d3309605
commit
e9b7abd219
2 changed files with 3 additions and 4 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 8c0385deb54414bf5436e4a1a59e1a87f3a5f41e
|
||||
Subproject commit 036086403f675b8fea0e22065f26ba534e351562
|
|
@ -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"));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue