Remove just-in-time image auto-orient for lightbox

We can bring this back if our users would like auto-orient for old attachments.
This commit is contained in:
Daniel Gasienica 2018-02-12 16:28:06 -05:00
parent 0739feae9c
commit 523a80eefe
1 changed files with 1 additions and 9 deletions

View File

@ -205,12 +205,6 @@
this.objectUrl = window.URL.createObjectURL(this.blob);
}
if (this.isImage()) {
window.autoOrientImage(this.objectUrl).then(dataURL => {
this.autoOrientedImageDataURL = dataURL;
});
}
const {blob} = this;
const {contentType} = this.model;
this.view = new View(this.objectUrl, {blob, contentType});
@ -279,9 +273,7 @@
}
},
render_attributes: function() {
return {
url: this.model.autoOrientedImageDataURL || this.model.objectUrl,
};
return { url: this.model.objectUrl };
}
});