Do not add style parameter when not needed (close #134)

This commit is contained in:
Petr Sloup
2017-03-15 11:39:21 +01:00
parent 0673c8990a
commit 7b952ee5c0
2 changed files with 2 additions and 1 deletions

View File

@@ -68,7 +68,7 @@ module.exports = function(options, repo, params, id, reportTiles, reportFont) {
return url;
}
var queryParams = [];
if (!opt_nostyle) {
if (!opt_nostyle && global.addStyleParam) {
queryParams.push('style=' + id);
}
if (!opt_nokey && req.query.key) {