diff --git a/apps/remix-ide/src/app/files/fileProvider.js b/apps/remix-ide/src/app/files/fileProvider.js index ea46dd8b72..d5873e43ef 100644 --- a/apps/remix-ide/src/app/files/fileProvider.js +++ b/apps/remix-ide/src/app/files/fileProvider.js @@ -17,8 +17,9 @@ class FileProvider { } addNormalizedName (path, url) { - this.providerExternalsStorage.set(this.type + '/' + path, url) - this.providerExternalsStorage.set(this.reverseKey + url, this.type + '/' + path) + if (this.type) path = this.type + '/' + path + this.providerExternalsStorage.set(path, url) + this.providerExternalsStorage.set(this.reverseKey + url, path) } removeNormalizedName (path) {