Skip to content

Commit

Permalink
YT: don't clog the console
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoros committed Jan 12, 2025
1 parent 0df6844 commit 6ea0347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/youtube/youtube.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function extractYoutubeVideoIDFromURL(testYTUrl: string): string | null {
const possibleID = url.pathname.slice(1).split('/')[0]; // Get first path segment
if (videoIdPattern.test(possibleID))
return possibleID;
console.log('[DEV]: Invalid youtu.be video ID:', possibleID);
// console.log('[DEV]: Invalid youtu.be video ID:', possibleID);
return null;
}

Expand Down

0 comments on commit 6ea0347

Please sign in to comment.