Disable stripWWW option

This commit is contained in:
Anton Gunov
2017-11-09 21:19:37 +07:00
parent 84dfd3b60b
commit 20c2f4006c
6 changed files with 18 additions and 17 deletions

View File

@@ -12,7 +12,8 @@ module.exports = (domain, options, done) => {
const url = new URL(icon.src, baseUrl);
if (options.normalizeUrl) {
icon.src = normalizeUrl(url.href, {
removeQueryParameters: [ /.+/, ],
removeQueryParameters: [/.+/],
stripWWW: false,
});
} else {
icon.src = url.href;