Skip to content

Commit

Permalink
Update take-snapshot.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
warmachine028 authored Aug 24, 2024
1 parent 10c33e1 commit a521f21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/take-snapshot.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const takeSnapShot = async () => {
const browser = await puppeteer.launch()
const page = await browser.newPage()
await page.setViewport({ width: 1920, height: 1080 })
await page.emulateMediaFeatures([{ name: "prefers-color-scheme", value: "dark" }]);
await page.goto(url)
await sleep(3000)
await page.screenshot({ path: '.github/preview.png' })
Expand Down

0 comments on commit a521f21

Please sign in to comment.