chore: fix running dist package in nodejs

So we have to add ".js" to the import name...
This commit is contained in:
2025-04-13 13:29:36 +07:00
parent 358fe53be9
commit 6cf4096064
5 changed files with 15 additions and 8 deletions

View File

@ -1,5 +1,5 @@
import type { Page } from "patchright";
import logger from "../logger";
import logger from "../logger.js";
async function checkConsentButton(page: Page, spawnId: string = "unknown") {
const consentButton = page.locator("button[data-a-target='consent-banner-accept']");