Skip to content

Commit

Permalink
fix(puppeteer): browser config should have default viewport, fix #593 (
Browse files Browse the repository at this point in the history
  • Loading branch information
Dup4 authored Apr 5, 2022
1 parent 1fad834 commit 868681d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/puppeteer/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type LaunchOptions = Parameters<typeof puppeteer.launch>[0]

const LaunchOptions = Schema.object({
executablePath: Schema.string().description('Chromium 可执行文件的路径。缺省时将自动从系统中寻找。'),
viewPort: Schema.object({
defaultViewport: Schema.object({
width: Schema.natural().description('默认的视图宽度。').default(800),
height: Schema.natural().description('默认的视图高度。').default(600),
deviceScaleFactor: Schema.number().min(0).description('默认的设备缩放比率。').default(2),
Expand Down

0 comments on commit 868681d

Please sign in to comment.