no injected on electron

pull/4745/head
yann300 7 months ago committed by Aniket
parent 5cb5b37629
commit 5e0bb520c7
  1. 4
      apps/remix-ide/src/app/udapp/run-tab.js

@ -1,6 +1,7 @@
import React from 'react' // eslint-disable-line import React from 'react' // eslint-disable-line
import {RunTabUI} from '@remix-ui/run-tab' import {RunTabUI} from '@remix-ui/run-tab'
import {ViewPlugin} from '@remixproject/engine-web' import {ViewPlugin} from '@remixproject/engine-web'
import isElectron from 'is-electron'
import {addressToString} from '@remix-ui/helper' import {addressToString} from '@remix-ui/helper'
import {InjectedProviderDefault} from '../providers/injected-provider-default' import {InjectedProviderDefault} from '../providers/injected-provider-default'
import {InjectedCustomProvider} from '../providers/injected-custom-provider' import {InjectedCustomProvider} from '../providers/injected-custom-provider'
@ -215,8 +216,7 @@ export class RunTab extends ViewPlugin {
registerInjectedProvider(event) registerInjectedProvider(event)
} }
) )
if (!isElectron()) window.dispatchEvent(new Event("eip6963:requestProvider"))
window.dispatchEvent(new Event("eip6963:requestProvider"))
} }
writeFile(fileName, content) { writeFile(fileName, content) {

Loading…
Cancel
Save