mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-07 20:17:05 +03:00
Fix rate-limiting when setting options from options page
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user