fix old segment thing

This commit is contained in:
Ajay
2022-04-01 01:37:02 -04:00
parent cdfd5ae3a3
commit 2dddd44537
2 changed files with 1 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "SponsorLock - Give Back Control!",
"short_name": "SponsorLock",
"version": "4.2.1",
"version": "4.2.3",
"default_locale": "en",
"description": "SponsorLock only shows you promotion, and skips all useful informaton.",
"homepage_url": "https://sponsor.ajay.app",

View File

@@ -775,17 +775,6 @@ async function sponsorsLookup(id: string, keepOldSubmissions = true) {
sponsorDataFound = true;
// Check if any old submissions should be kept
if (sponsorTimes !== null && keepOldSubmissions) {
for (let i = 0; i < sponsorTimes.length; i++) {
if (sponsorTimes[i].source === SponsorSourceType.Local) {
// This is a user submission, keep it
recievedSegments.push(sponsorTimes[i]);
}
}
}
const oldSegments = sponsorTimes || [];
sponsorTimes = recievedSegments;
if (sponsorTimes) {