File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,22 +6,22 @@ var url = system.args[1];
6
6
// XXX: should we log these instead?
7
7
phantom . onError = page . onError = function ( ) { } ;
8
8
9
- function json ( object ) {
9
+ function outputJSON ( object ) {
10
10
console . log ( JSON . stringify ( object , null , 2 ) ) ;
11
11
}
12
12
13
13
if ( ! url ) {
14
- json ( { error : "Missing url" } ) ;
14
+ outputJSON ( { error : "Missing url" } ) ;
15
15
phantom . exit ( ) ;
16
16
}
17
17
18
18
page . open ( url , function ( status ) {
19
19
if ( status !== "success" ) {
20
- json ( { error : "Unable to access " + url } ) ;
20
+ outputJSON ( { error : "Unable to access " + url } ) ;
21
21
return phantom . exit ( ) ;
22
22
}
23
23
page . injectJs ( "vendor/Readability.js" ) ;
24
- json ( page . evaluate ( function ( url ) {
24
+ outputJSON ( page . evaluate ( function ( url ) {
25
25
var location = document . location ;
26
26
var uri = {
27
27
spec : location . href ,
You can’t perform that action at this time.
0 commit comments