Permalink
Browse files

FIX: Use modified api.

  • Loading branch information...
1 parent ef6fc46 commit 1a7aeeb40fdcfc8a60a8c2d7c89a32fbd43c1f10 @lbdremy committed Jan 25, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 examples/get-started.js
View
@@ -5,11 +5,11 @@
var scrapinode = require('./../');
// 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 1a7aeeb

Please sign in to comment.