ignore state updates when on node

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>

Closes #390
This commit is contained in:
unaffiliated
2017-01-21 16:21:48 +01:00
committed by Yoshua Wuyts
parent edbdc09ade
commit 6daf2e69f0
+2
View File
@@ -24,7 +24,9 @@ function choo (opts) {
var _routes = null
var _frame = null
if (typeof window !== 'undefined') {
_store.use({ onStateChange: render })
}
_store.use(opts)
start.toString = toString