mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-14 15:37:12 +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");
|
||||
|
||||
if (isNaN(configValue) || configValue < 0) {
|
||||
numberInput.value = 0;
|
||||
numberInput.value = SB.defaults[numberChangeOption];
|
||||
} else {
|
||||
numberInput.value = configValue;
|
||||
}
|
||||
@@ -306,4 +306,4 @@ function activateTextChange(element) {
|
||||
});
|
||||
|
||||
element.querySelector(".option-hidden-section").classList.remove("hidden");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user