Skip to content

Commit

Permalink
revert naming change
Browse files Browse the repository at this point in the history
  • Loading branch information
amiantos committed Jan 5, 2021
1 parent 875fed4 commit 5df5af6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,13 +367,13 @@ ${inject.body || ''}
})
}

for (let currentFrame = 0; currentFrame < numFrames; ++currentFrame) {
for (let frame = 0; frame < numFrames; ++frame) {
const frameOutputPath = isMultiFrame
? sprintf(tempOutput, currentFrame + 1)
? sprintf(tempOutput, frame + 1)
: tempOutput

// eslint-disable-next-line no-undef
await page.evaluate((currentFrame) => animation.goToAndStop(currentFrame, true), currentFrame)
await page.evaluate((frame) => animation.goToAndStop(frame, true), frame)
const screenshot = await rootHandle.screenshot({
path: isMp4 ? undefined : frameOutputPath,
...screenshotOpts
Expand Down

0 comments on commit 5df5af6

Please sign in to comment.