From 9708859894b3ff69a83578fb3b58743ca9234e86 Mon Sep 17 00:00:00 2001 From: Kasper Lewau Date: Sat, 20 May 2017 18:52:18 +0200 Subject: [PATCH] pass through emit args to updateHistory (#496) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 () {