update variable reference

This commit is contained in:
Joseph Canero 2017-10-05 14:54:55 -04:00
parent 18407dea65
commit 127a4465c9

View file

@ -65,9 +65,9 @@ module.exports = function (options, repo, params, id, reportTiles, reportFont) {
if (styleJSON.sprite && !httpTester.test(styleJSON.sprite)) {
spritePath = normalizeSpritePath(styleJSON.sprite);
styleJSON.sprite = 'local://styles/' + id + '/sprite';
// if there are still sprites for this style, serve them according to the config setting
} else if (item.serveSprites && typeof item.serveSprites === 'object') {
spritePath = normalizeSpritePath(item.serveSprites.file);
// if there are still sprites for this style, serve them according to the config setting
} else if (params.serveSprites && typeof params.serveSprites === 'object') {
spritePath = normalizeSpritePath(params.serveSprites.file);
}
if (styleJSON.glyphs && !httpTester.test(styleJSON.glyphs)) {