Skip to content

Commit

Permalink
fix(router): use state.location.href (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvincent authored and yoshuawuyts committed Dec 11, 2016
1 parent 82c9b07 commit 166cbfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function choo (opts) {
_router = start._router = createRouter(_routerOpts, _routes, createSend)
const state = _store.state({state: {}})

const tree = _router(state.location.pathname, state)
const tree = _router(state.location.href, state)
_rootNode = tree
return tree
}
Expand All @@ -73,7 +73,7 @@ function choo (opts) {
function render (state, data, prev, name, createSend) {
if (!_frame) {
_frame = nanoraf(function (state, prev) {
const newTree = _router(state.location.pathname, state, prev)
const newTree = _router(state.location.href, state, prev)
_rootNode = yo.update(_rootNode, newTree)
})
}
Expand Down

0 comments on commit 166cbfc

Please sign in to comment.