fix(navPop): unhandled promise exception

This commit is contained in:
Manu Mtz.-Almeida
2017-01-21 00:05:09 +01:00
parent a5bbbd55cb
commit b995ca8df4

View File

@ -43,7 +43,9 @@ export class NavPop {
onClick(): boolean {
// If no target, or if target is _self, prevent default browser behavior
if (this._nav) {
this._nav.pop(null, null);
this._nav.pop().catch(() => {
console.debug('navPop was rejected');
});
return false;
}