mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-09 13:07:05 +03:00
Fix rate-limiting when setting options from options page
This commit is contained in:
Submodule maze-utils updated: 8c0385deb5...036086403f
@@ -286,7 +286,7 @@ async function init() {
|
|||||||
break;
|
break;
|
||||||
case "resetToDefault":
|
case "resetToDefault":
|
||||||
Config.resetToDefault();
|
Config.resetToDefault();
|
||||||
window.location.reload();
|
setTimeout(() => window.location.reload(), 200);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -632,8 +632,7 @@ async function setTextOption(option: string, element: HTMLElement, value: string
|
|||||||
await invidiousOnClick(checkbox, "supportInvidious");
|
await invidiousOnClick(checkbox, "supportInvidious");
|
||||||
}
|
}
|
||||||
|
|
||||||
window.location.reload();
|
setTimeout(() => window.location.reload(), 200);
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
alert(chrome.i18n.getMessage("incorrectlyFormattedOptions"));
|
alert(chrome.i18n.getMessage("incorrectlyFormattedOptions"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user