activate only for inisial setup

pull/5370/head
LianaHus 5 years ago committed by ioedeveloper
parent b471f93516
commit 51b0e05ae3
  1. 14
      apps/remix-ide/src/app.js

@ -135,7 +135,7 @@ class App {
document.body.appendChild(self._view.splashScreen) document.body.appendChild(self._view.splashScreen)
// setup storage // setup storage
var configStorage = new Storage('config-v0.8:') const configStorage = new Storage('config-v0.8:')
// load app config // load app config
const config = new Config(configStorage) const config = new Config(configStorage)
@ -400,16 +400,18 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
await appManager.activatePlugin(['home', 'sidePanel', 'hiddenPanel', 'pluginManager', 'fileExplorers', 'settings', 'contextualListener', 'scriptRunner', 'terminal', 'fetchAndCompile']) await appManager.activatePlugin(['home', 'sidePanel', 'hiddenPanel', 'pluginManager', 'fileExplorers', 'settings', 'contextualListener', 'scriptRunner', 'terminal', 'fetchAndCompile'])
// Set workspace after initial activation // Set workspace after initial activation
if (Array.isArray(workspace)) await appManager.activatePlugin(workspace) if (Array.isArray(workspace)) {
await appManager.activatePlugin(workspace)
} else {
// activate solidity plugin
appManager.ensureActivated('solidity')
appManager.ensureActivated('udapp')
}
// Load and start the service who manager layout and frame // Load and start the service who manager layout and frame
const framingService = new FramingService(sidePanel, menuicons, mainview, this._components.resizeFeature) const framingService = new FramingService(sidePanel, menuicons, mainview, this._components.resizeFeature)
framingService.start() framingService.start()
// preactivate solidity plugin
appManager.ensureActivated('solidity')
appManager.ensureActivated('udapp')
// get the file list from the parent iframe // get the file list from the parent iframe
loadFileFromParent(fileManager) loadFileFromParent(fileManager)

Loading…
Cancel
Save