From ec9ac228f79223ee4c4b427a15e90a1d9eb4cc82 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Thu, 2 Mar 2023 17:19:13 +0100 Subject: [PATCH] cleanup --- apps/remix-ide/src/app.js | 15 ++++++++------- apps/remix-ide/src/assets/js/loader.js | 1 - 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/remix-ide/src/app.js b/apps/remix-ide/src/app.js index f05a775ab9..1386443818 100644 --- a/apps/remix-ide/src/app.js +++ b/apps/remix-ide/src/app.js @@ -119,6 +119,8 @@ class AppComponent { this.engine = new RemixEngine() this.engine.register(appManager); + + const matomoDomains = { 'remix-alpha.ethereum.org': 27, 'remix-beta.ethereum.org': 25, @@ -178,7 +180,7 @@ class AppComponent { //----- search const search = new SearchPlugin() - + //---------------- Solidity UML Generator ------------------------- const solidityumlgen = new SolidityUmlGen(appManager) @@ -448,11 +450,7 @@ class AppComponent { if ( this.appManager.pluginLoader.current === 'queryParams' && this.workspace.length > 0 - ) { - this.menuicons.select(this.workspace[this.workspace.length - 1]) - } else { - this.appManager.call('tabs', 'focus', 'home') - } + ) { this.menuicons.select(this.workspace[this.workspace.length - 1]) } } if (params.call) { @@ -486,16 +484,19 @@ class AppComponent { } } } + + }) .catch(console.error) } const loadedElement = document.createElement('span') loadedElement.setAttribute('data-id', 'apploaded') document.body.appendChild(loadedElement) - }) + }) // activate solidity plugin this.appManager.activatePlugin(['solidity', 'udapp', 'deploy-libraries', 'link-libraries', 'openzeppelin-proxy']) + // Load and start the service who manager layout and frame } } diff --git a/apps/remix-ide/src/assets/js/loader.js b/apps/remix-ide/src/assets/js/loader.js index 049c40a67c..98a39476f1 100644 --- a/apps/remix-ide/src/assets/js/loader.js +++ b/apps/remix-ide/src/assets/js/loader.js @@ -54,7 +54,6 @@ function isElectron() { const versionUrl = 'assets/version.json' fetch(versionUrl, { cache: "no-store" }).then(response => { response.text().then(function (data) { - const version = JSON.parse(data); console.log(`Loading Remix ${version.version}`); });