Use `contentType` from `model`

This commit is contained in:
Daniel Gasienica 2018-02-12 16:23:39 -05:00
parent 032c0ced46
commit 9638fbc987
1 changed files with 2 additions and 1 deletions

View File

@ -215,7 +215,8 @@
});
}
const {blob, contentType} = this;
const {blob} = this;
const {contentType} = this.model;
this.view = new View(this.objectUrl, {blob, contentType});
this.view.$el.appendTo(this.$el);
this.listenTo(this.view, 'update', this.update);