Skip to content

Commit

Permalink
fix: use puppeteer instance of default export
Browse files Browse the repository at this point in the history
  • Loading branch information
wadackel committed May 1, 2022
1 parent 1062cba commit 14b26bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/browser.ts
@@ -1,6 +1,6 @@
import type { Browser as PuppeteerBrowser, Page } from 'puppeteer-core';
import type { LaunchOptions } from '@acot/types';
import { launch } from 'puppeteer-core';
import puppeteer from 'puppeteer-core';
const debug = require('debug')('acot:core');

export class Browser {
Expand Down Expand Up @@ -38,7 +38,7 @@ export class Browser {
}

public async launch(launchOptions: LaunchOptions): Promise<Browser> {
this._browser = await launch(launchOptions);
this._browser = await puppeteer.launch(launchOptions);

return this;
}
Expand Down

0 comments on commit 14b26bb

Please sign in to comment.