mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-16 16:37:18 +03:00
Use defaults if it the config is broken
This commit is contained in:
committed by
GitHub
parent
34a21c6d8c
commit
a685950a66
@@ -76,7 +76,7 @@ async function init() {
|
|||||||
let numberInput = optionsElements[i].querySelector("input");
|
let numberInput = optionsElements[i].querySelector("input");
|
||||||
|
|
||||||
if (isNaN(configValue) || configValue < 0) {
|
if (isNaN(configValue) || configValue < 0) {
|
||||||
numberInput.value = 0;
|
numberInput.value = SB.defaults[numberChangeOption];
|
||||||
} else {
|
} else {
|
||||||
numberInput.value = configValue;
|
numberInput.value = configValue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user