Permalink
Browse files

FIX: No more next argument.

  • Loading branch information...
1 parent e283403 commit 1eb99e915110ea1c12afb3b842b2feea0892e6a9 @lbdremy committed Feb 2, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
@@ -14,11 +14,11 @@ npm install scrapinode
var scrapinode = require('scrapinode');
// Define an operation for a specific route and content
-scrapinode.use('society6.com','title',function(window,next){
+scrapinode.use('society6.com','title',function(window){
var $ = window.$;
- var url = window.url; // maybe you want to check for some reasons
+ var url = window.location.href; // maybe you want to check for some reasons
var title = $('h1[itemprop="name"]').text();
- if(!title) return next();
+ if(!title) return null;
return title;
});

0 comments on commit 1eb99e9

Please sign in to comment.