Skip to content

Commit

Permalink
adds check for base64 in path before prepending the local url to full…
Browse files Browse the repository at this point in the history
…Url property #49
  • Loading branch information
jamemackson committed Jul 16, 2015
1 parent b259cf0 commit 6088c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/app/models/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default DS.Model.extend({

fullUrl: Ember.computed('path', function () {
let path = this.get('path');
if (path && path.indexOf('s3.amazonaws.com') > -1) {
if (path && path.indexOf('s3.amazonaws.com') > -1 && path.indexOf('base64') > -1) {
return path;
} else {
let host = this.store.adapterFor('application').get('host');
Expand Down

0 comments on commit 6088c07

Please sign in to comment.