Skip to content

Commit

Permalink
Remove log
Browse files Browse the repository at this point in the history
  • Loading branch information
hanydd committed Jan 13, 2025
1 parent e6e3119 commit 8efcadd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/thumbnail-utils/thumbnailManagement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export function setupThumbnailListener(): void {

// listen to container child changes
getThumbnailContainerElements(getPageType()).forEach(({ containerType, selector }) => {
console.log(containerType, selector);
void waitFor(() => document.querySelector(selector), 10000)
.then((thumbnailContainer) => {
labelNewThumbnails(thumbnailContainer, containerType); // fire thumbnail check once when the container is loaded
Expand Down Expand Up @@ -81,6 +80,5 @@ export function checkPageForNewThumbnails() {
async function labelNewThumbnails(container: Element, containerType: string) {
if (!container || !document.body.contains(container)) return;
const thumbnails = container.querySelectorAll(getThumbnailSelectors(containerType)) as NodeListOf<HTMLElement>;
console.log(thumbnails);
thumbnails.forEach((t) => labelThumbnail(t as HTMLImageElement, containerType));
}

0 comments on commit 8efcadd

Please sign in to comment.