Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/phantomjs/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@

// parse args
var i, arg, page, urlCount, viewport,
system=require('system'),
webpage = require('webpage'),
args = phantom.args,
args = system.args,
len = args.length,
urls = [],
yslowArgs = {
Expand Down Expand Up @@ -56,7 +57,7 @@ var i, arg, page, urlCount, viewport,
};

// loop args
for (i = 0; i < len; i += 1) {
for (i = 1; i < len; i += 1) {
arg = args[i];
if (arg[0] !== '-') {
// url, normalize if needed
Expand Down