diff --git a/index.js b/index.js index 591c2dc..f199c7c 100644 --- a/index.js +++ b/index.js @@ -58,7 +58,7 @@ function Choo (opts) { bus.prependListener('pushState', updateHistory.bind(null, 'push')) bus.prependListener('replaceState', updateHistory.bind(null, 'replace')) - function updateHistory (mode) { + function updateHistory (mode, href) { if (href) window.history[mode + 'State']({}, null, href) bus.emit('render') setTimeout(function () {