Skip to content

Commit

Permalink
Remove debug console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
hanydd committed Feb 27, 2024
1 parent 2b0cc46 commit f9e8902
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions src/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/utils/thumbnails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export async function labelThumbnail(thumbnail: HTMLImageElement): Promise<HTMLE
return null;
}
const [videoID] = videoIDs;
console.log("videoID", videoID)

const category = await getVideoLabel(videoID);
if (!category) {
Expand Down
2 changes: 1 addition & 1 deletion webpack/configDiffPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class configDiffPlugin {
compiler.hooks.done.tapAsync("configDiffPlugin", async (stats, callback) => {
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")
Expand Down

0 comments on commit f9e8902

Please sign in to comment.