diff --git a/.github/take-snapshot.mjs b/.github/take-snapshot.mjs index cd5b9d8..5d2eeae 100644 --- a/.github/take-snapshot.mjs +++ b/.github/take-snapshot.mjs @@ -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' })