diff --git a/apps/remix-ide/src/app.js b/apps/remix-ide/src/app.js index 0a4f982fa4..b001164e9c 100644 --- a/apps/remix-ide/src/app.js +++ b/apps/remix-ide/src/app.js @@ -354,10 +354,6 @@ class AppComponent { const queryParams = new QueryParams() const params = queryParams.get() - if (isElectron()) { - this.appManager.activatePlugin('remixd') - } - try { this.engine.register(await this.appManager.registeredPlugins()) } catch (e) { diff --git a/libs/remix-ui/workspace/src/lib/actions/index.ts b/libs/remix-ui/workspace/src/lib/actions/index.ts index afc401c744..8627c25c7e 100644 --- a/libs/remix-ui/workspace/src/lib/actions/index.ts +++ b/libs/remix-ui/workspace/src/lib/actions/index.ts @@ -8,6 +8,7 @@ import { createWorkspaceTemplate, getWorkspaces, loadWorkspacePreset, setPlugin, import { QueryParams } from '@remix-project/remix-lib' import { fetchContractFromEtherscan } from '@remix-project/core-plugin' // eslint-disable-line import JSZip from 'jszip' +import isElectron from 'is-electron' export * from './events' export * from './workspace' @@ -111,6 +112,8 @@ export const initWorkspace = (filePanelPlugin) => async (reducerDispatch: React. await basicWorkspaceInit(workspaces, workspaceProvider) } } else await basicWorkspaceInit(workspaces, workspaceProvider) + } else if (isElectron()) { + await plugin.call('manager', 'activatePlugin', 'remixd') } else if (localStorage.getItem("currentWorkspace")) { const index = workspaces.findIndex(element => element.name == localStorage.getItem("currentWorkspace")) if (index !== -1) {