Skip to content

Commit

Permalink
Merge pull request #2871 from ethereum/better_electron_support
Browse files Browse the repository at this point in the history
better electron support
  • Loading branch information
bunsenstraat authored Sep 5, 2022
2 parents 22d03b2 + 0753cfd commit a1d888a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions apps/remix-ide/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 5 additions & 0 deletions libs/remix-ui/workspace/src/lib/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -111,6 +112,10 @@ export const initWorkspace = (filePanelPlugin) => async (reducerDispatch: React.
await basicWorkspaceInit(workspaces, workspaceProvider)
}
} else await basicWorkspaceInit(workspaces, workspaceProvider)
} else if (isElectron()) {
plugin.call('notification', 'toast', `connecting to localhost...`)
await basicWorkspaceInit(workspaces, workspaceProvider)
await plugin.call('manager', 'activatePlugin', 'remixd')
} else if (localStorage.getItem("currentWorkspace")) {
const index = workspaces.findIndex(element => element.name == localStorage.getItem("currentWorkspace"))
if (index !== -1) {
Expand Down

1 comment on commit a1d888a

@vercel
Copy link

@vercel vercel bot commented on a1d888a Sep 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.