Switch to using location-history package

https://npmjs.com/package/location-history
This commit is contained in:
Feross Aboukhadijeh
2016-07-28 20:07:12 -07:00
parent 43a81f725f
commit 536f04985f
6 changed files with 15 additions and 139 deletions

View File

@@ -66,7 +66,13 @@ function onState (err, _state) {
}
// Add first page to location history
state.location.go({ url: 'home' })
state.location.go({
url: 'home',
setup: (cb) => {
dispatch('resetTitle')
cb(null)
}
})
// Restart everything we were torrenting last time the app ran
resumeTorrents()