From e03802688d343d4442ecc92c50ffd57041d4a6e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Kondratiuk?= Date: Fri, 1 Jun 2018 15:26:40 -0300 Subject: [PATCH] docs(api.md): Fix CDPSession code example (#2654) --- docs/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api.md b/docs/api.md index 5d3ecae0dde..691bec6e80d 100644 --- a/docs/api.md +++ b/docs/api.md @@ -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', {