Skip to content

Commit

Permalink
Merge pull request #188 from Martii/fixIconParsing
Browse files Browse the repository at this point in the history
Fix pseudo unique *(e.g. non-upmixed but unique)* `@icon` key to use **last value** only
  • Loading branch information
sizzlemctwizzle committed Jun 20, 2014
2 parents 649705d + 816839e commit ea80e99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/modelParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ var parseScript = function(scriptData) {
script.icon16Url = script.meta.icon;
script.icon45Url = script.meta.icon;
} else if (_.isArray(script.meta.icon) && !_.isEmpty(script.meta.icon)) {
script.icon16Url = script.meta.icon[0];
script.icon45Url = script.meta.icon[script.meta.icon.length >= 2 ? 1 : 1];
script.icon16Url = script.meta.icon[script.meta.icon.length - 1];
script.icon45Url = script.meta.icon[script.meta.icon.length - 1];
}
}
if (script.meta.icon64) {
Expand Down

0 comments on commit ea80e99

Please sign in to comment.