From 49e967e87bd0b9b77e32dc5bf6caeaf63d6ac3a8 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Thu, 2 Mar 2023 17:20:44 +0100 Subject: [PATCH] cleanup --- apps/remix-ide/src/app.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/apps/remix-ide/src/app.js b/apps/remix-ide/src/app.js index 1386443818..cca71d7632 100644 --- a/apps/remix-ide/src/app.js +++ b/apps/remix-ide/src/app.js @@ -119,8 +119,6 @@ class AppComponent { this.engine = new RemixEngine() this.engine.register(appManager); - - const matomoDomains = { 'remix-alpha.ethereum.org': 27, 'remix-beta.ethereum.org': 25, @@ -450,7 +448,11 @@ class AppComponent { if ( this.appManager.pluginLoader.current === 'queryParams' && this.workspace.length > 0 - ) { this.menuicons.select(this.workspace[this.workspace.length - 1]) } + ) { + this.menuicons.select(this.workspace[this.workspace.length - 1]) + } else { + this.appManager.call('tabs', 'focus', 'home') + } } if (params.call) { @@ -484,19 +486,16 @@ 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 } }