Skip to content

Commit

Permalink
feat: navigateBack 추가
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/main.ts
  • Loading branch information
say8425 committed Apr 4, 2024
1 parent a5fd4f1 commit a26a19f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { upToScroll } from "./upToScroll";
export { navigateBack } from "./navigateBack";
3 changes: 3 additions & 0 deletions src/navigateBack/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const navigateBack = (steps = 1) => {
window.history.go(-steps);
};

0 comments on commit a26a19f

Please sign in to comment.