can use worker

rdesktop2
filip mertens 1 year ago
parent 6045655cd2
commit 8987d73d20
  1. 2
      apps/remixdesktop/src/plugins/isoGitPlugin.ts
  2. 3
      libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx

@ -214,6 +214,8 @@ class IsoGitPluginClient extends ElectronBasePluginClient {
async push(cmd: any) { async push(cmd: any) {
console.log('PUSH', cmd)
const push = await git.push({ const push = await git.push({
...await this.getGitConfig(), ...await this.getGitConfig(),
...cmd, ...cmd,

@ -13,6 +13,7 @@ import { configFileContent } from './compilerConfiguration'
import axios, { AxiosResponse } from 'axios' import axios, { AxiosResponse } from 'axios'
import './css/style.css' import './css/style.css'
import isElectron from 'is-electron'
const defaultPath = "compiler_config.json" const defaultPath = "compiler_config.json"
declare global { declare global {
@ -560,7 +561,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
// "Uncaught RangeError: Maximum call stack size exceeded" error on Chromium, // "Uncaught RangeError: Maximum call stack size exceeded" error on Chromium,
// resort to non-worker version in that case. // resort to non-worker version in that case.
if (selectedVersion === 'builtin') selectedVersion = state.defaultVersion if (selectedVersion === 'builtin') selectedVersion = state.defaultVersion
if (selectedVersion !== 'builtin' && canUseWorker(selectedVersion)) { if (selectedVersion !== 'builtin' && (canUseWorker(selectedVersion) || isElectron()) {
compileTabLogic.compiler.loadVersion(true, url) compileTabLogic.compiler.loadVersion(true, url)
} else { } else {
compileTabLogic.compiler.loadVersion(false, url) compileTabLogic.compiler.loadVersion(false, url)

Loading…
Cancel
Save