rollback previouslyOpenedFile opening behavio

pull/3094/head
yann300 7 years ago
parent 6614eaff40
commit 2af41b895b
  1. 6
      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()

Loading…
Cancel
Save