support history navigation
This commit is contained in:
parent
eec7973060
commit
1afbde6e19
4 changed files with 23 additions and 2 deletions
8
src/content/histories.js
Normal file
8
src/content/histories.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
const prev = (win) => {
|
||||
win.history.back()
|
||||
};
|
||||
const next = (win) => {
|
||||
win.history.forward()
|
||||
};
|
||||
|
||||
export { prev, next };
|
Reference in a new issue