instead of searching for domain starting at position 0, check if it is included in the url.

This commit is contained in:
Joseph Canero 2017-10-03 18:51:33 -04:00
parent 7bbbd01fc4
commit f07e6ef3e8

View file

@ -75,7 +75,7 @@ module.exports = function (options, repo, params, id, reportTiles, reportFont) {
continue; continue;
} }
if (url.indexOf(keyDomain) === 0) { if (url.includes(keyDomain) === 0) {
return true; return true;
} }
} }