From 8eeddeb4bc528d1718df6d3165f8b5ff98702cd1 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sun, 15 May 2016 18:02:11 -0700 Subject: [PATCH] OS X: Fix magnet links throwing exception on launch Push page into location right away --- renderer/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/renderer/index.js b/renderer/index.js index fa6ce6f4..06372b7d 100644 --- a/renderer/index.js +++ b/renderer/index.js @@ -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()