From 982da81a181f43e8aa7671010d1e6e9955885121 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 9 Mar 2021 14:01:46 +0100 Subject: [PATCH] improve naming --- apps/remix-ide/src/app/compiler/compiler-imports.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide/src/app/compiler/compiler-imports.js b/apps/remix-ide/src/app/compiler/compiler-imports.js index 5b3077b008..89fa1aa988 100644 --- a/apps/remix-ide/src/app/compiler/compiler-imports.js +++ b/apps/remix-ide/src/app/compiler/compiler-imports.js @@ -88,9 +88,9 @@ module.exports = class CompilerImports extends Plugin { (error, content, cleanUrl, type, url) => { if (error) return cb(error) if (this.fileManager) { - const workspace = this.fileManager.currentFileProvider() + const provider = this.fileManager.currentFileProvider() const path = targetPath || type + '/' + cleanUrl - if (workspace) workspace.addExternal('.deps/' + path, content, url) + if (provider) provider.addExternal('.deps/' + path, content, url) } cb(null, content) })