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
9d8e2777
...
9d8e27776aeb44825d69ce699b25cf0c688b20c2
authored
2013-06-02 20:26:57 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added warning for when trying to use casper in a node env
1 parent
c543ddab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
bin/bootstrap.js
bin/bootstrap.js
View file @
9d8e277
...
...
@@ -28,9 +28,14 @@
*
*/
/*global console, phantom, require:true*/
/*global
process,
console, phantom, require:true*/
/*jshint maxstatements:30, maxcomplexity:10*/
// node check
if
(
process
&&
process
.
title
===
"node"
)
{
console
.
error
(
'CasperJS cannot be executed within a nodejs environment'
);
}
// phantom check
if
(
!
phantom
)
{
console
.
error
(
'CasperJS needs to be executed in a PhantomJS environment http://phantomjs.org/'
);
...
...
Please
register
or
sign in
to post a comment