Merge pull request #518 from feross/osx-magnet-exception

OS X: Fix magnet links throwing exception on launch
This commit is contained in:
Feross Aboukhadijeh
2016-05-16 03:04:17 +02:00

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()