From b66a89c3ce3c8b08ab6b5606dd45059ded03e940 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Thu, 4 Jun 2020 12:51:18 +0200 Subject: [PATCH] activate only for inisial setup --- src/app.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/app.js b/src/app.js index 9c7ca8cadf..968a294d8b 100644 --- a/src/app.js +++ b/src/app.js @@ -135,7 +135,7 @@ class App { document.body.appendChild(self._view.splashScreen) // setup storage - var configStorage = new Storage('config-v0.8:') + const configStorage = new Storage('config-v0.8:') // load app config 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']) // 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 const framingService = new FramingService(sidePanel, menuicons, mainview, this._components.resizeFeature) framingService.start() - // preactivate solidity plugin - appManager.ensureActivated('solidity') - appManager.ensureActivated('udapp') - // get the file list from the parent iframe loadFileFromParent(fileManager)