Skip to content

Commit

Permalink
debug attempt for puppeteer testing
Browse files Browse the repository at this point in the history
  • Loading branch information
OvidijusParsiunas committed Feb 2, 2025
1 parent 38848bd commit 549abe1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions npm/src/filterToColor/filterToHex/workers/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export class FilterToHexNode extends FilterToHexShared {
const addSvgResult = await FilterToHexNode.addSVGAndValidateFilter(page, filterString);
if (ErrorHandling.hasError(addSvgResult)) return FilterToHexNode.returnError(addSvgResult.errorMessage, browser);
const base64EncodedDataURL = await FilterToHexNode.getImageBase64ViaSVG(page);
console.log(base64EncodedDataURL);
const hexColor = await page.evaluate(FilterToHexShared.getColorViaImageDataURL, base64EncodedDataURL);
FilterToHexNode.cleanup(browser);
return { color: hexColor as unknown as T };
Expand Down

0 comments on commit 549abe1

Please sign in to comment.