Skip to content

Commit

Permalink
Load stat icons using require() (but its not working 🤔)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshhunt committed Dec 31, 2016
1 parent 9f8f305 commit c9fc8c9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/scripts/minmax/dimMinMax.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -508,23 +508,24 @@ const _ = require('underscore');
value: 0,
tier: 0,
name: 'Intellect',
icon: 'images/Intellect.png'
icon: require('app/images/Intellect.png'),
},
STAT_DISCIPLINE: {
value: 0,
tier: 0,
name: 'Discipline',
icon: 'images/Discipline.png'
icon: require('app/images/Discipline.png'),
},
STAT_STRENGTH: {
value: 0,
tier: 0,
name: 'Strength',
icon: 'images/Strength.png'
icon: require('app/images/Strength.png'),
}
},
setHash: 0
};

if (validSet(set.armor)) {
vm.hasSets = true;
set.setHash = genSetHash(set.armor);
Expand Down

0 comments on commit c9fc8c9

Please sign in to comment.