normalize file path only if exists

pull/5370/head
Aniket-Engg 3 years ago committed by yann300
parent cd873c4f29
commit 459df88847
  1. 2
      apps/remix-ide/src/app/files/fileManager.js

@ -612,11 +612,11 @@ class FileManager extends Plugin {
}
async openFile (file) {
file = this.normalize(file)
if (!file) {
this.emit('noFileSelected')
this.events.emit('noFileSelected')
} else {
file = this.normalize(file)
this.saveCurrentFile()
const resolved = this.getPathFromUrl(file)
file = resolved.file

Loading…
Cancel
Save