chore: fix running dist package in nodejs
So we have to add ".js" to the import name...
This commit is contained in:
@ -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']");
|
||||
|
||||
Reference in New Issue
Block a user