Commit cd8bcd8f cd8bcd8fed4c8ec193570bb1ede1b471709a1c35 by Laurent Jouanneau

Refs #482: creation of default UA should take care about SlimerJS

1 parent 05250d2e
...@@ -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";
......