From 6088c07d948d46da0cfd88693955083ba10e9504 Mon Sep 17 00:00:00 2001 From: jame Date: Wed, 15 Jul 2015 03:14:49 -0500 Subject: [PATCH] adds check for base64 in path before prepending the local url to fullUrl property #49 --- client/app/models/image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/app/models/image.js b/client/app/models/image.js index 98bb76a..5f53cf2 100644 --- a/client/app/models/image.js +++ b/client/app/models/image.js @@ -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');