From f9e89022662745fefe206e2df22ebba72c16fc92 Mon Sep 17 00:00:00 2001 From: HanYaodong Date: Tue, 27 Feb 2024 13:53:43 +0800 Subject: [PATCH] Remove debug console logs --- src/content.ts | 4 ---- src/utils/thumbnails.ts | 1 - webpack/configDiffPlugin.js | 2 +- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/content.ts b/src/content.ts index 8dc11be8..b8346b08 100644 --- a/src/content.ts +++ b/src/content.ts @@ -433,7 +433,6 @@ function createPreviewBar(): void { const el = option.isVisibleCheck ? findValidElement(allElements) : allElements[0]; if (el) { - console.log("createPreviewBar parent node: ", el) const chapterVote = new ChapterVote(voteAsync); previewBar = new PreviewBar(el, chapterVote); @@ -1000,7 +999,6 @@ async function sponsorsLookup(keepOldSubmissions = true) { source: SponsorSourceType.Server })) ?.sort((a, b) => a.segment[0] - b.segment[0]); - console.log("sponsor lookup", receivedSegments) if (receivedSegments && receivedSegments.length) { sponsorDataFound = true; @@ -1201,8 +1199,6 @@ function updatePreviewBar(): void { const hashParams = getHashParams(); const requiredSegment = hashParams?.requiredSegment as SegmentUUID || undefined; const previewBarSegments: PreviewBarSegment[] = []; - //TODO: remove temp console output - console.log("update preview bar, sponsorTimes:", sponsorTimes) if (sponsorTimes) { sponsorTimes.forEach((segment) => { if (segment.hidden !== SponsorHideType.Visible) return; diff --git a/src/utils/thumbnails.ts b/src/utils/thumbnails.ts index c6e2f9d0..8c40b31d 100644 --- a/src/utils/thumbnails.ts +++ b/src/utils/thumbnails.ts @@ -24,7 +24,6 @@ export async function labelThumbnail(thumbnail: HTMLImageElement): Promise { logger = compiler.getInfrastructureLogger('configDiffPlugin') logger.log('Checking for config.json diff...') - + // check example const exampleConfig = await readFileContents("./config.json.example") const currentConfig = await readFileContents("./config.json")