diff --git a/index.js b/index.js index 20eec08..86910aa 100644 --- a/index.js +++ b/index.js @@ -128,8 +128,8 @@ Choo.prototype.start = function () { } this.state.href = this._createLocation() - this._tree = this.router(this.state.href) this.state.query = nanoquery(window.location.search) + this._tree = this.router(this.state.href) assert.ok(this._tree, 'choo.start: no valid DOM node returned for location ' + this.state.href) this.emitter.prependListener(self._events.RENDER, nanoraf(function () {