Skip to content

Commit

Permalink
fix(screencast): stop idempotent
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Mar 23, 2024
1 parent 3a0748a commit 6d75d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/screencast/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ module.exports = (page, opts) => {
// https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-startScreencast
start: () => client.send('Page.startScreencast', opts),
onFrame: fn => (onFrame = fn),
stop: async () => client.send('Page.stopScreencast')
stop: () => client.send('Page.stopScreencast').catch(() => {})
}
}

0 comments on commit 6d75d4f

Please sign in to comment.