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) { async openFile (file) {
file = this.normalize(file)
if (!file) { if (!file) {
this.emit('noFileSelected') this.emit('noFileSelected')
this.events.emit('noFileSelected') this.events.emit('noFileSelected')
} else { } else {
file = this.normalize(file)
this.saveCurrentFile() this.saveCurrentFile()
const resolved = this.getPathFromUrl(file) const resolved = this.getPathFromUrl(file)
file = resolved.file file = resolved.file

Loading…
Cancel
Save