don't add slash on event

pull/1622/head
filip mertens 3 years ago
parent 5eb7fe5c5d
commit 80951c804d
  1. 4
      apps/remix-ide/src/app/files/fileProvider.js

@ -117,9 +117,9 @@ class FileProvider {
return false
}
if (!exists) {
this.event.emit('fileAdded', this._normalizePath(this.addSlash(unprefixedpath)), false)
this.event.emit('fileAdded', this._normalizePath(unprefixedpath), false)
} else {
this.event.emit('fileChanged', this._normalizePath(this.addSlash(unprefixedpath)))
this.event.emit('fileChanged', this._normalizePath(unprefixedpath))
}
if (cb) cb()
return true

Loading…
Cancel
Save