Skip to content

Commit

Permalink
docs(api.md): Fix CDPSession code example (puppeteer#2654)
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok authored and aslushnikov committed Jun 1, 2018
1 parent 0f8c7e7 commit e038026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2846,7 +2846,7 @@ Documentation on DevTools Protocol can be found here: [DevTools Protocol Viewer]
```js
const client = await page.target().createCDPSession();
await client.send('Animation.enable');
await client.on('Animation.animationCreated', () => console.log('Animation created!'));
client.on('Animation.animationCreated', () => console.log('Animation created!'));
const response = await client.send('Animation.getPlaybackRate');
console.log('playback rate is ' + response.playbackRate);
await client.send('Animation.setPlaybackRate', {
Expand Down

0 comments on commit e038026

Please sign in to comment.