From f07e6ef3e85e089d5cfa41e44b69abcd30a7e6a3 Mon Sep 17 00:00:00 2001 From: Joseph Canero Date: Tue, 3 Oct 2017 18:51:33 -0400 Subject: [PATCH] instead of searching for domain starting at position 0, check if it is included in the url. --- src/serve_style.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serve_style.js b/src/serve_style.js index 2683669..bef3cc4 100644 --- a/src/serve_style.js +++ b/src/serve_style.js @@ -75,7 +75,7 @@ module.exports = function (options, repo, params, id, reportTiles, reportFont) { continue; } - if (url.indexOf(keyDomain) === 0) { + if (url.includes(keyDomain) === 0) { return true; } }