From 6b26477937e20202741625340f9ceb50c5dd3788 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 7 Feb 2018 11:42:53 +0100 Subject: [PATCH] fix first load --- src/app.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app.js b/src/app.js index b7fb76bc6b..0cff818aac 100644 --- a/src/app.js +++ b/src/app.js @@ -515,9 +515,11 @@ Please make a backup of your contracts and start using http://remix.ethereum.org filePanel.event.register('resize', delta => self._adjustLayout('left', delta)) var previouslyOpenedFile = config.get('currentFile') - filesProviders['browser'].get(previouslyOpenedFile, (error, content) => { - if (!error && content) fileManager.switchFile(previouslyOpenedFile) - }) + if (previouslyOpenedFile) { + filesProviders['browser'].get(previouslyOpenedFile, (error, content) => { + if (!error && content) fileManager.switchFile(previouslyOpenedFile) + }) + } // ----------------- Renderer ----------------- var rendererAPI = {