From a94f8d394b20a5e8ebaf38e67aa5b542eb69aab4 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Mon, 11 May 2020 12:49:48 +0200 Subject: [PATCH] trying to test wasm versions --- src/app/compiler/compiler-utils.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/compiler/compiler-utils.js b/src/app/compiler/compiler-utils.js index a1020bd9ef2..25e6425f10f 100644 --- a/src/app/compiler/compiler-utils.js +++ b/src/app/compiler/compiler-utils.js @@ -1,4 +1,4 @@ -const semver = require('semver') +// const semver = require('semver') /* global Worker */ export const baseUrl = 'https://solc-bin.ethereum.org/wasm' @@ -13,7 +13,7 @@ export function urlFromVersion (version) { export function canUseWorker (selectedVersion) { // Following restrictions should be deleted when Solidity will release fixed versions of compilers. // See https://github.com/ethereum/remix-ide/issues/2461 - const isChrome = !!window.chrome + /* const isChrome = !!window.chrome const os = retrieveOS() // define a whitelist for Linux const linuxWL = ['0.4.26', '0.5.3', '0.5.4', '0.5.5'] @@ -29,7 +29,7 @@ export function canUseWorker (selectedVersion) { break default : isFromWhiteList = true - } + } */ return browserSupportWorker()// && (!isChrome || (isChrome && isFromWhiteList)) } @@ -37,7 +37,7 @@ function browserSupportWorker () { return document.location.protocol !== 'file:' && Worker !== undefined } -function retrieveOS () { +/* function retrieveOS () { let osName = 'Unknown OS' if (navigator.platform.indexOf('Win') !== -1) { osName = 'Windows' @@ -45,4 +45,4 @@ function retrieveOS () { osName = 'Linux' } return osName -} +} */