From 0b394f741278fe3ad8e3ea7a8dcb23356a4662e8 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 7 Feb 2018 14:33:31 +0100 Subject: [PATCH] rollback previouslyOpenedFile opening behavio --- src/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app.js b/src/app.js index aa0f619cd5..ab8d2f04c3 100644 --- a/src/app.js +++ b/src/app.js @@ -517,7 +517,11 @@ Please make a backup of your contracts and start using http://remix.ethereum.org var previouslyOpenedFile = config.get('currentFile') if (previouslyOpenedFile) { filesProviders['browser'].get(previouslyOpenedFile, (error, content) => { - if (!error && content) fileManager.switchFile(previouslyOpenedFile) + if (!error && content) { + fileManager.switchFile(previouslyOpenedFile) + } else { + fileManager.switchFile() + } }) } else { fileManager.switchFile()