rollback previouslyOpenedFile opening behavio

pull/1/head
yann300 7 years ago
parent e50039d51c
commit 0b394f7412
  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