Skip to content

Commit

Permalink
fix(puppeteer): cannot read property (#2987)
Browse files Browse the repository at this point in the history
  • Loading branch information
M4TH76 authored Jun 13, 2022
1 parent 2a482e3 commit 04fbdc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as Process from 'process';
import {config} from './config'; // Needs to be loaded first
import {startAPIServer, stopAPIServer} from './web';
import {Browser, launch} from 'puppeteer';
import Puppeteer, {Browser} from 'puppeteer';
import {getSleepTime} from './util';
import {logger} from './logger';
import {storeList} from './store/model';
Expand Down Expand Up @@ -107,7 +107,7 @@ export async function launchBrowser(): Promise<Browser> {
}

await stop();
const browser = await launch({
const browser = await Puppeteer.launch({
args,
defaultViewport: {
height: config.page.height,
Expand Down

0 comments on commit 04fbdc1

Please sign in to comment.