From 127a4465c9997c91c921371989a33d608b057372 Mon Sep 17 00:00:00 2001 From: Joseph Canero Date: Thu, 5 Oct 2017 14:54:55 -0400 Subject: [PATCH] update variable reference --- src/serve_style.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/serve_style.js b/src/serve_style.js index 391f7ea..81cff2d 100644 --- a/src/serve_style.js +++ b/src/serve_style.js @@ -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)) {