mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-15 16:07:06 +03:00
Enable checkbox when the permission prompt is successful
This commit is contained in:
committed by
GitHub
parent
f0bf051259
commit
030256c9e1
@@ -271,6 +271,8 @@ function invidiousOnClick(checkbox: HTMLInputElement, option: string) {
|
|||||||
if (!granted) {
|
if (!granted) {
|
||||||
Config.config[option] = false;
|
Config.config[option] = false;
|
||||||
checkbox.checked = false;
|
checkbox.checked = false;
|
||||||
|
} else {
|
||||||
|
checkbox.checked = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user