|
|
@ -8,6 +8,7 @@ import { createWorkspaceTemplate, getWorkspaces, loadWorkspacePreset, setPlugin, |
|
|
|
import { QueryParams } from '@remix-project/remix-lib' |
|
|
|
import { QueryParams } from '@remix-project/remix-lib' |
|
|
|
import { fetchContractFromEtherscan } from '@remix-project/core-plugin' // eslint-disable-line
|
|
|
|
import { fetchContractFromEtherscan } from '@remix-project/core-plugin' // eslint-disable-line
|
|
|
|
import JSZip from 'jszip' |
|
|
|
import JSZip from 'jszip' |
|
|
|
|
|
|
|
import isElectron from 'is-electron' |
|
|
|
|
|
|
|
|
|
|
|
export * from './events' |
|
|
|
export * from './events' |
|
|
|
export * from './workspace' |
|
|
|
export * from './workspace' |
|
|
@ -111,6 +112,8 @@ export const initWorkspace = (filePanelPlugin) => async (reducerDispatch: React. |
|
|
|
await basicWorkspaceInit(workspaces, workspaceProvider) |
|
|
|
await basicWorkspaceInit(workspaces, workspaceProvider) |
|
|
|
} |
|
|
|
} |
|
|
|
} else await basicWorkspaceInit(workspaces, workspaceProvider) |
|
|
|
} else await basicWorkspaceInit(workspaces, workspaceProvider) |
|
|
|
|
|
|
|
} else if (isElectron()) { |
|
|
|
|
|
|
|
await plugin.call('manager', 'activatePlugin', 'remixd') |
|
|
|
} else if (localStorage.getItem("currentWorkspace")) { |
|
|
|
} else if (localStorage.getItem("currentWorkspace")) { |
|
|
|
const index = workspaces.findIndex(element => element.name == localStorage.getItem("currentWorkspace")) |
|
|
|
const index = workspaces.findIndex(element => element.name == localStorage.getItem("currentWorkspace")) |
|
|
|
if (index !== -1) { |
|
|
|
if (index !== -1) { |
|
|
|