@su-record/vibe 2.16.1 → 2.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -619,7 +619,9 @@ async function capture({ url, opts }) {
|
|
|
619
619
|
|
|
620
620
|
await freezeAnimations(page);
|
|
621
621
|
|
|
622
|
-
|
|
622
|
+
// PAGE_EXTRACT is a parenthesized function-expression string. page.evaluate treats a
|
|
623
|
+
// string arg as an expression and ignores extra args, so build the call ourselves.
|
|
624
|
+
const extracted = await page.evaluate(`(${PAGE_EXTRACT})(${JSON.stringify(CSS_PROPS)})`);
|
|
623
625
|
|
|
624
626
|
// Screenshot AFTER freezing animations
|
|
625
627
|
const shotPath = path.join(opts.out, 'screenshot.png');
|