Merge pull request #3468 from ethereum/focushome

Focus on Home after refresh
pull/3453/head
Liana Husikyan 2 years ago committed by GitHub
commit 958971b0f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      apps/remix-ide/src/app.js

@ -119,8 +119,6 @@ class AppComponent {
this.engine = new RemixEngine() this.engine = new RemixEngine()
this.engine.register(appManager); this.engine.register(appManager);
const matomoDomains = { const matomoDomains = {
'remix-alpha.ethereum.org': 27, 'remix-alpha.ethereum.org': 27,
'remix-beta.ethereum.org': 25, 'remix-beta.ethereum.org': 25,
@ -450,7 +448,11 @@ class AppComponent {
if ( if (
this.appManager.pluginLoader.current === 'queryParams' && this.appManager.pluginLoader.current === 'queryParams' &&
this.workspace.length > 0 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) { if (params.call) {
@ -484,19 +486,16 @@ class AppComponent {
} }
} }
} }
}) })
.catch(console.error) .catch(console.error)
} }
const loadedElement = document.createElement('span') const loadedElement = document.createElement('span')
loadedElement.setAttribute('data-id', 'apploaded') loadedElement.setAttribute('data-id', 'apploaded')
document.body.appendChild(loadedElement) document.body.appendChild(loadedElement)
}) })
// activate solidity plugin // activate solidity plugin
this.appManager.activatePlugin(['solidity', 'udapp', 'deploy-libraries', 'link-libraries', 'openzeppelin-proxy']) this.appManager.activatePlugin(['solidity', 'udapp', 'deploy-libraries', 'link-libraries', 'openzeppelin-proxy'])
// Load and start the service who manager layout and frame
} }
} }

Loading…
Cancel
Save