diff --git a/api/_lib/chromium.ts b/api/_lib/chromium.ts index d5aa67d..13e0d7c 100644 --- a/api/_lib/chromium.ts +++ b/api/_lib/chromium.ts @@ -1,14 +1,14 @@ -import { launch, Page } from 'puppeteer-core'; +import core from 'puppeteer-core'; import { getOptions } from './options'; import { FileType } from './types'; -let _page: Page | null; +let _page: core.Page | null; async function getPage(isDev: boolean) { if (_page) { return _page; } const options = await getOptions(isDev); - const browser = await launch(options); + const browser = await core.launch(options); _page = await browser.newPage(); return _page; }