mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-14 23:47:04 +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 {
|
||||||
@@ -428,4 +430,4 @@ function validateServerAddress(input: string): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return input;
|
return input;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user