diff --git a/apps/remix-ide/src/app/compiler/compiler-imports.js b/apps/remix-ide/src/app/compiler/compiler-imports.js index 4db80049fc..39ab3e9f7a 100644 --- a/apps/remix-ide/src/app/compiler/compiler-imports.js +++ b/apps/remix-ide/src/app/compiler/compiler-imports.js @@ -31,8 +31,8 @@ module.exports = class CompilerImports extends Plugin { } isExternalUrl (url) { - const handlers = this.handlers() - return handlers.some(handler => handler.match.exec(url)) + const handlers = this.urlResolver.getHandlers() + return handlers.some(handler => handler.match(url)) } /**