Skip to content

Commit

Permalink
fix see comment link
Browse files Browse the repository at this point in the history
  • Loading branch information
penicillin0 committed Jan 18, 2024
1 parent 69b216d commit 10f687c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/storycap/src/node/capturing-browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export class CapturingBrowser extends StoryPreviewBrowser {
await this.page.setViewport(nextViewport);

// Setting isMobile or hasTouch properties will reload the page.
// See also https://github.com/puppeteer/puppeteer/blob/main/docs/api.md#pagesetviewportviewport
// See also https://github.com/puppeteer/puppeteer/blob/main/docs/api/puppeteer.viewport.md
const willBeReloaded =
nextViewport.isMobile !== this.viewport?.isMobile || nextViewport.hasTouch !== this.viewport?.hasTouch;
this.viewport = nextViewport;
Expand Down

0 comments on commit 10f687c

Please sign in to comment.