Skip to content

Commit 3cb3956

Browse files
committedJul 14, 2015
Update afterRender method definition, with v2.0.0
[skip ci]
1 parent e66c3df commit 3cb3956

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ app.use(require('prerender-node').set('beforeRender', function(req, done) {
8787

8888
This method is intended to be used for caching, but could be used to save analytics or anything else you need to do for each crawler request. This method is a noop and is called after the prerender service returns HTML.
8989
```js
90-
app.use(require('prerender-node').set('afterRender', function(req, prerender_res) {
90+
app.use(require('prerender-node').set('afterRender', function(err, req, prerender_res) {
9191
// do whatever you need to do
9292
}));
9393
```

0 commit comments

Comments
 (0)
Please sign in to comment.