diff --git a/apps/remix-ide/src/app.js b/apps/remix-ide/src/app.js index 4cb32e75e7..d88b3272cf 100644 --- a/apps/remix-ide/src/app.js +++ b/apps/remix-ide/src/app.js @@ -460,7 +460,8 @@ Please make a backup of your contracts and start using http://remix.ethereum.org await appManager.activatePlugin(['mainPanel', 'menuicons', 'tabs']) await appManager.activatePlugin(['sidePanel']) // activating host plugin separately await appManager.activatePlugin(['home']) - await appManager.activatePlugin(['hiddenPanel', 'pluginManager', 'filePanel', 'settings', 'contextualListener', 'terminal', 'fetchAndCompile', 'contentImport']) + await appManager.activatePlugin(['settings']) + await appManager.activatePlugin(['hiddenPanel', 'pluginManager', 'filePanel', 'contextualListener', 'terminal', 'fetchAndCompile', 'contentImport']) const queryParams = new QueryParams() const params = queryParams.get() diff --git a/libs/remix-core-plugin/src/lib/compiler-content-imports.ts b/libs/remix-core-plugin/src/lib/compiler-content-imports.ts index 3a907fa2b4..ea4eae6958 100644 --- a/libs/remix-core-plugin/src/lib/compiler-content-imports.ts +++ b/libs/remix-core-plugin/src/lib/compiler-content-imports.ts @@ -26,10 +26,6 @@ export class CompilerImports extends Plugin { this.urlResolver.setGistToken(token, protocol) } - onActivation () { - this.setToken() - } - isRelativeImport (url) { return /^([^/]+)/.exec(url) } @@ -73,6 +69,7 @@ export class CompilerImports extends Plugin { let resolved try { + await this.setToken() resolved = await this.urlResolver.resolve(url) const { content, cleanUrl, type } = resolved self.previouslyHandled[url] = {