Skip to content

Commit

Permalink
Corrected merge conflict.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam A.G. Shamblin committed Apr 10, 2014
2 parents 3feffbf + 66ae478 commit 29f4d48
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/retina.js
Expand Up @@ -3,6 +3,9 @@
var root = (typeof exports == 'undefined' ? window : exports);

var config = {
// An option to choose a suffix for 2x images
retinaImageSuffix : "@2x",

// Ensure Content-Type is an image before trying to load @2x image
// https://github.com/imulus/retinajs/pull/45)
check_mime_type: true,
Expand Down Expand Up @@ -62,7 +65,7 @@
this.at_2x_path = at_2x_path;
this.perform_check = false;
} else {
this.at_2x_path = path.replace(/\.\w+$/, function(match) { return "@2x" + match; });
this.at_2x_path = path.replace(/\.\w+$/, function(match) { return config.retinaImageSuffix + match; });
this.perform_check = true;
}
}
Expand Down

0 comments on commit 29f4d48

Please sign in to comment.