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;
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";
......