Refs #482: creation of default UA should take care about SlimerJS
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -44,7 +44,7 @@ var f = utils.format; | ... | @@ -44,7 +44,7 @@ var f = utils.format; |
44 | 44 | ||
45 | 45 | ||
46 | var defaultUserAgent = phantom.defaultPageSettings.userAgent | 46 | var defaultUserAgent = phantom.defaultPageSettings.userAgent |
47 | .replace('PhantomJS', f("CasperJS/%s", phantom.casperVersion) + '+Phantomjs'); | 47 | .replace(/(PhantomJS|SlimerJS)/, f("CasperJS/%s", phantom.casperVersion) + '+$&'); |
48 | 48 | ||
49 | exports.create = function create(options) { | 49 | exports.create = function create(options) { |
50 | "use strict"; | 50 | "use strict"; | ... | ... |
-
Please register or sign in to post a comment