added history control via URLs -- does not work yet...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-07-27 17:33:47 +03:00
parent c170fafe3f
commit 18fe95b436

View File

@ -92,6 +92,14 @@ var go = (path) => {
path = path.trim()
path = path[0] == '[' ? path.slice(1, -1) : path
// history stuff...
if(path == 'History/back'){
return history.back()
} else if(path == 'History/forward'){
return history.forward()
}
Wiki.location = path
history.pushState({