Skip to content

Commit

Permalink
Not exactly the most elegant solution, but it fixed cloudinary#28 for…
Browse files Browse the repository at this point in the history
… me.
  • Loading branch information
robksawyer committed Sep 21, 2015
1 parent 336640a commit 9e68a57
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/angular.cloudinary.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@

var loadImage = function() {
var url = $.cloudinary.url(publicId, attributes);
if ( url.search('file') > -1 ) {
url = url.replace(/file/gi,'http');
}
element.attr('src', url);
}

Expand Down

0 comments on commit 9e68a57

Please sign in to comment.