Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
27ce6e3d
...
27ce6e3d106f829ca3c629570d68ea4e29abada5
authored
2012-09-22 18:12:18 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
phantom.exit() compatibility with phantomjs 1.7-dev
1 parent
7bb28449
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
bin/bootstrap.js
bin/bootstrap.js
View file @
27ce6e3
...
...
@@ -276,16 +276,18 @@ if (!phantom || phantom.version.major !== 1 || phantom.version.minor < 5) {
phantom
.
casperScript
=
phantom
.
casperArgs
.
get
(
0
);
}
if
(
!
fs
.
isFile
(
phantom
.
casperScript
)
)
{
console
.
error
(
'Unable to open file: '
+
phantom
.
casperScript
);
phantom
.
exit
(
1
);
}
// filter out the called script name from casper args
phantom
.
casperArgs
.
drop
(
phantom
.
casperScript
);
if
(
phantom
.
casperScript
)
{
if
(
!
fs
.
isFile
(
phantom
.
casperScript
))
{
console
.
error
(
'Unable to open file: '
+
phantom
.
casperScript
);
phantom
.
exit
(
1
);
}
else
{
// filter out the called script name from casper args
phantom
.
casperArgs
.
drop
(
phantom
.
casperScript
);
// passed casperjs script execution
phantom
.
injectJs
(
phantom
.
casperScript
);
// passed casperjs script execution
phantom
.
injectJs
(
phantom
.
casperScript
);
}
}
};
if
(
!
phantom
.
casperLoaded
)
{
...
...
Please
register
or
sign in
to post a comment