mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 05:57:07 +03:00
Fix skip profile fallback for toggle settings not working
This commit is contained in:
@@ -74,7 +74,7 @@ export function getSkipProfileNum(key: "minDuration"): number {
|
|||||||
|
|
||||||
function getSkipProfileValue<T>(key: keyof CustomConfiguration): T {
|
function getSkipProfileValue<T>(key: keyof CustomConfiguration): T {
|
||||||
const profile = getSkipProfile();
|
const profile = getSkipProfile();
|
||||||
if (profile && profile[key] !== undefined) {
|
if (profile && profile[key] !== null) {
|
||||||
return profile[key] as T;
|
return profile[key] as T;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user