Skip to content

Commit

Permalink
adds document event listener to prevent white pages, fixes #63 🔨
Browse files Browse the repository at this point in the history
  • Loading branch information
yannickoo committed Apr 8, 2016
1 parent 929a85a commit 106ddb0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/esti.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 24,7 @@ let store = configureStore(initialState)
riot.mixin('redux', mixin(store))
riot.mount('esti')
riot.route.base('/')
riot.route.start(true)

document.addEventListener('DOMContentLoaded', () => {
riot.route.start(true)
})

0 comments on commit 106ddb0

Please sign in to comment.