Skip to content

Commit b995ca8

Browse files
committed
fix(navPop): unhandled promise exception
1 parent a5bbbd5 commit b995ca8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/nav/nav-pop.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ export class NavPop {
4343
onClick(): boolean {
4444
// If no target, or if target is _self, prevent default browser behavior
4545
if (this._nav) {
46-
this._nav.pop(null, null);
46+
this._nav.pop().catch(() => {
47+
console.debug('navPop was rejected');
48+
});
4749
return false;
4850
}
4951

0 commit comments

Comments
 (0)