From 2dddd44537bf027b7a8ac739aab646d6883e0726 Mon Sep 17 00:00:00 2001 From: Ajay Date: Fri, 1 Apr 2022 01:37:02 -0400 Subject: [PATCH] fix old segment thing --- manifest/manifest.json | 2 +- src/content.ts | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/manifest/manifest.json b/manifest/manifest.json index 9d890c1c..9e00f2b9 100644 --- a/manifest/manifest.json +++ b/manifest/manifest.json @@ -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", diff --git a/src/content.ts b/src/content.ts index 145efb60..00a1b3d9 100644 --- a/src/content.ts +++ b/src/content.ts @@ -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) {