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
cd8bcd8f
...
cd8bcd8fed4c8ec193570bb1ede1b471709a1c35
authored
2013-06-05 00:43:53 +0200
by
Laurent Jouanneau
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Refs #482: creation of default UA should take care about SlimerJS
1 parent
05250d2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
modules/casper.js
modules/casper.js
View file @
cd8bcd8
...
...
@@ -44,7 +44,7 @@ var f = utils.format;
var
defaultUserAgent
=
phantom
.
defaultPageSettings
.
userAgent
.
replace
(
'PhantomJS'
,
f
(
"CasperJS/%s"
,
phantom
.
casperVersion
)
+
'+Phantomjs
'
);
.
replace
(
/
(
PhantomJS|SlimerJS
)
/
,
f
(
"CasperJS/%s"
,
phantom
.
casperVersion
)
+
'+$&
'
);
exports
.
create
=
function
create
(
options
)
{
"use strict"
;
...
...
Please
register
or
sign in
to post a comment