Skip to content

Commit c8ec628

Browse files
Update README.md
1 parent 6aa0317 commit c8ec628

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ is quite simple, check it out. Render flow:
127127
3. Render url **or** html.
128128

129129
If `url` is defined, **`page.goto(url, options)`** is called and options match `goto.*`.
130-
Otherwise **``page.goto(`data:text/html,${html}`, options)``** is called where html is taken from request body. This workaround was found from [Puppeteer issue](https://github.com/GoogleChrome/puppeteer/issues/728).
130+
Otherwise **`page.setContent(html, options)`** is called where html is taken from request body, an options match `goto.*`.
131131

132132
4. *Possibly* **`page.waitFor(numOrStr)`** if e.g. `waitFor=1000` is set.
133133
5. *Possibly* **Scroll the whole page** to the end before rendering if e.g. `scrollPage=true` is set.

0 commit comments

Comments
 (0)