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