s/.done(/.then(/ since modern es6 track unhandled promise exceptions
This commit is contained in:
parent
0a21957b2c
commit
09a8fec261
43 changed files with 74 additions and 72 deletions
|
@ -371,7 +371,7 @@ module.exports = createReactClass({
|
|||
if (pushers[i].kind === 'email') {
|
||||
const emailPusher = pushers[i];
|
||||
emailPusher.data = { brand: this.props.brand };
|
||||
matrixClient.setPusher(emailPusher).done(() => {
|
||||
matrixClient.setPusher(emailPusher).then(() => {
|
||||
console.log("Set email branding to " + this.props.brand);
|
||||
}, (error) => {
|
||||
console.error("Couldn't set email branding: " + error);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue