Skip to content

Commit 61de0c3

Browse files
committed
remove captureFrame logs
1 parent c0b6aa4 commit 61de0c3

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

index.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -516,15 +516,10 @@ async function captureFramesWithTiming(
516516
async function captureFramesProgrammatically(page, captureFrameFunction) {
517517
const frames = []
518518

519-
page.on("console", msg => {
520-
console.log("BROWSER:", msg.text())
521-
})
522-
523519
// set up the event listener and capture loop
524520
await page.exposeFunction("captureFrame", async () => {
525521
const frame = await captureFrameFunction()
526522
frames.push(frame)
527-
console.log(`programmatic frame ${frames.length} captured`)
528523
return frames.length
529524
})
530525

@@ -535,11 +530,6 @@ async function captureFramesProgrammatically(page, captureFrameFunction) {
535530
const handleFrameCapture = async event => {
536531
const frameCount = await window.captureFrame()
537532

538-
console.log(JSON.stringify(event))
539-
console.log(JSON.stringify({ frameCount, maxFrames }))
540-
console.log(
541-
JSON.stringify({ isLastFrame: event.detail?.isLastFrame })
542-
)
543533
if (event.detail?.isLastFrame || frameCount >= maxFrames) {
544534
window.removeEventListener(
545535
"fxhash-capture-frame",

0 commit comments

Comments
 (0)