s/.done(/.then(/ since modern es6 track unhandled promise exceptions
This commit is contained in:
@@ -55,7 +55,7 @@ export default class MAudioBody extends React.Component {
|
||||
decryptFile(content.file).then(function(blob) {
|
||||
decryptedBlob = blob;
|
||||
return URL.createObjectURL(decryptedBlob);
|
||||
}).done((url) => {
|
||||
}).then((url) => {
|
||||
this.setState({
|
||||
decryptedUrl: url,
|
||||
decryptedBlob: decryptedBlob,
|
||||
|
||||
@@ -289,7 +289,7 @@ export default class MImageBody extends React.Component {
|
||||
this.setState({
|
||||
error: err,
|
||||
});
|
||||
}).done();
|
||||
}).then();
|
||||
}
|
||||
|
||||
// Remember that the user wanted to show this particular image
|
||||
|
||||
@@ -115,7 +115,7 @@ module.exports = createReactClass({
|
||||
this.setState({
|
||||
error: err,
|
||||
});
|
||||
}).done();
|
||||
}).then();
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user