diff --git a/docs/api.md b/docs/api.md index 92cba659dc0..a2be9454de1 100644 --- a/docs/api.md +++ b/docs/api.md @@ -389,7 +389,7 @@ Adds a function which would be invoked in one of the following scenarios: - whenever the page is navigated - whenever the child frame is attached or navigated. In this case, the function is invoked in the context of the newly attached frame -The function is invoked after the document was created but before any of its scripts were run. This is useful to amend JavaScript environment, e.g. to seed [Math.random](https://github.com/GoogleChrome/puppeteer/blob/master/examples/unrandomize.js) +The function is invoked after the document was created but before any of its scripts were run. This is useful to amend JavaScript environment, e.g. to seed `Math.random`. #### page.exposeFunction(name, puppeteerFunction) - `name` <[string]> Name of the function on the window object