fix(alert): unhandled promise exception

This commit is contained in:
Manu Mtz.-Almeida
2017-01-21 00:20:27 +01:00
parent 8c4fd56b81
commit ee2268f42a
2 changed files with 4 additions and 1 deletions

View File

@@ -259,7 +259,9 @@ export class AlertCmp {
}
if (shouldDismiss) {
this.dismiss(button.role);
this.dismiss(button.role).catch(() => {
console.debug('alert can not be dismissed');
});
}
}

View File

@@ -81,6 +81,7 @@ export class TabsPage {
alert.dismiss().then(() => {
resolve();
});
return false;
}
}
]