Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

FIX: Use modified api.

  • Loading branch information...
commit 1a7aeeb40fdcfc8a60a8c2d7c89a32fbd43c1f10 1 parent ef6fc46
Remy Loubradou authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  examples/get-started.js
6  examples/get-started.js
@@ -5,11 +5,11 @@
5 5
 var scrapinode = require('./../');
6 6
 
7 7
 // Define an operation for a specific route and content
8  
-scrapinode.use('society6.com','title',function(window,next){
  8
+scrapinode.use('society6.com','title',function(window){
9 9
   var $ = window.$;
10  
-  var url = window.url; // maybe you want to check for some reasons 
  10
+  var url = window.location.href; // maybe you want to check for some reasons
11 11
   var title = $('h1[itemprop="name"]').text();
12  
-  if(!title) return next();
  12
+  if(!title) return null;
13 13
   return title;
14 14
 });
15 15
 

0 notes on commit 1a7aeeb

Please sign in to comment.
Something went wrong with that request. Please try again.