mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
Fix segments being deleted
This commit is contained in:
parent
83955fc746
commit
44571a67d9
1 changed files with 1 additions and 1 deletions
|
@ -250,7 +250,7 @@ const Config: SBObject = {
|
|||
function encodeStoredItem<T>(data: T): T | UnencodedSegmentTimes {
|
||||
// if data is SBMap convert to json for storing
|
||||
if(!(data instanceof SBMap)) return data;
|
||||
return Array.from(data.entries()).filter((element) => element[1] === []); // Remove empty entries
|
||||
return Array.from(data.entries()).filter((element) => element[1].length > 0); // Remove empty entries
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue