support history navigation

This commit is contained in:
Shin'ya Ueoka 2017-08-23 21:28:50 +09:00
parent eec7973060
commit 1afbde6e19
4 changed files with 23 additions and 2 deletions

8
src/content/histories.js Normal file
View file

@ -0,0 +1,8 @@
const prev = (win) => {
win.history.back()
};
const next = (win) => {
win.history.forward()
};
export { prev, next };