Skip to content

Commit

Permalink
Documentation pop
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Jun 12, 2024
1 parent cd2dd54 commit 7e8b488
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/elements/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ export class Routes extends NativeRoutes {
return pathname.split(prefix)[1];
}

// Goes back, and if there is no page saved in the history of the app,
// goes back up to the root of the previous level of the pathname
/// Goes back, and if there is no page saved in the history of the app,
/// goes back up to the root of the previous level of the pathname
///
/// Having no page saved in the history of the app usually means that the user refreshed the page
pop(parentPath: string = '') {
const previousPathname = this.currentPathname();
window.history.back();
Expand Down

0 comments on commit 7e8b488

Please sign in to comment.