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
81b2094d
...
81b2094d61ecd1700508e17f6e71a122df854956
authored
2012-12-17 08:01:16 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed error when setting userAgent() casper being not started
1 parent
60019d5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
modules/casper.js
modules/casper.js
View file @
81b2094
...
...
@@ -1586,7 +1586,10 @@ Casper.prototype.toString = function toString() {
*/
Casper
.
prototype
.
userAgent
=
function
userAgent
(
agent
)
{
"use strict"
;
this
.
options
.
pageSettings
.
userAgent
=
this
.
page
.
settings
.
userAgent
=
agent
;
this
.
options
.
pageSettings
.
userAgent
=
agent
;
if
(
this
.
started
&&
this
.
page
)
{
this
.
page
.
settings
.
userAgent
=
agent
;
}
return
this
;
};
...
...
Please
register
or
sign in
to post a comment