Skip to content

Commit

Permalink
fix(core): fix device lookup after puppeteer upgrade (#126) (#125)
Browse files Browse the repository at this point in the history
Summary:
Fix an issue reported from OSS usage:
#126

Closes #125

Reviewed By: twobassdrum

Differential Revision: D61502413

fbshipit-source-id: bbb7732d446c6d94d9440bc00929d76313ba8808
  • Loading branch information
JacksonGL authored and facebook-github-bot committed Aug 20, 2024
1 parent 20f1e0f commit 69e87a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/lib/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const devices = constant.isFRL
: constant.isFB
? require('puppeteer-core/DeviceDescriptors')
: // eslint-disable-next-line @typescript-eslint/no-var-requires
require('puppeteer').devices;
require('puppeteer').KnownDevices;

// default viewport config for desktop
const windowWidth = 1680;
Expand Down

0 comments on commit 69e87a7

Please sign in to comment.