OS X: Fix magnet links throwing exception on launch

Push page into location right away
This commit is contained in:
Feross Aboukhadijeh
2016-05-15 18:02:11 -07:00
parent c126ac0a84
commit 8eeddeb4bc

View File

@@ -43,6 +43,9 @@ var Cast = null
// For easy debugging in Developer Tools
var state = global.state = State.getInitialState()
// Push the first page into the location history
state.location.go({ url: 'home' })
var vdomLoop
// All state lives in state.js. `state.saved` is read from and written to a file.
@@ -58,9 +61,6 @@ function init () {
// Clean up the freshly-loaded config file, which may be from an older version
cleanUpConfig()
// Push the first page into the location history
state.location.go({ url: 'home' })
// Restart everything we were torrenting last time the app ran
resumeTorrents()