Skip to content

Commit

Permalink
Use res for default image resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
kpdecker committed Nov 19, 2012
1 parent 18bb250 commit 1ecf22b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stylus-images.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function init(source, options) {
if (!err) {
var ret = {},
imagesSeen = self.evaluator.imagesSeen;
(imageOptions.resolutions || [1]).forEach(function(resolution) {
(imageOptions.resolutions || [imageOptions.res || 1]).forEach(function(resolution) {
ret[resolution] = data.replace(/url\("stylusImages:\/\/(\d+)"\)/g, function(value, id) {
// Replace image content
id = parseInt(id, 10);
Expand Down

0 comments on commit 1ecf22b

Please sign in to comment.