Skip to content

Commit

Permalink
fix(navPop): unhandled promise exception
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Jan 20, 2017
1 parent a5bbbd5 commit b995ca8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/nav/nav-pop.ts
Expand Up @@ -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;
}

Expand Down

0 comments on commit b995ca8

Please sign in to comment.