From 6045655cd2bb601e32dba4d0bdfa41e431bdff67 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Mon, 3 Jul 2023 16:26:07 +0200 Subject: [PATCH] can use worker --- libs/remix-solidity/src/compiler/compiler-utils.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/libs/remix-solidity/src/compiler/compiler-utils.ts b/libs/remix-solidity/src/compiler/compiler-utils.ts index f6640580ba..456264aa03 100644 --- a/libs/remix-solidity/src/compiler/compiler-utils.ts +++ b/libs/remix-solidity/src/compiler/compiler-utils.ts @@ -1,5 +1,4 @@ import * as semver from 'semver' -const isElectron = require('is-electron') /* global Worker */ export const baseURLBin = 'https://binaries.soliditylang.org/bin' @@ -35,7 +34,6 @@ export function urlFromVersion (version) { * checks a compiler whitelist, browser support and OS. */ export function canUseWorker (selectedVersion) { - console.log('canUseWorker', selectedVersion) if (selectedVersion.startsWith('http')) { return browserSupportWorker() } @@ -53,7 +51,6 @@ export function canUseWorker (selectedVersion) { } function browserSupportWorker () { - if(isElectron()) return true return document ? document.location.protocol !== 'file:' && Worker !== undefined : false }