Merge pull request #1169 from ethereum/fixCompilerLoading

Fix loading compiler
pull/3094/head
yann300 7 years ago committed by GitHub
commit 7cec208bdc
  1. 4
      manifest.json
  2. 6
      package.json
  3. 2
      src/app/panels/file-panel.js
  4. 4
      src/app/tabs/settings-tab.js

@ -1,7 +1,7 @@
{
"name": "Solidity",
"description": "Realtime compiler and runtime",
"update_url": "https://ethereum.github.io/remix-ide/",
"update_url": "https://remix.ethereum.org",
"version": "1.1",
"manifest_version": 2,
"background": {
@ -27,5 +27,5 @@
"<all_urls>"
],
"content_security_policy": "script-src 'self' https://ethereum.github.io/solc-bin/bin/; object-src 'self'"
"content_security_policy": "script-src 'self' https://solc-bin.ethereum.org/; object-src 'self'"
}

@ -1,6 +1,6 @@
{
"name": "remix-ide",
"version": "0.5.2-alpha.6",
"version": "0.5.2-alpha.7",
"description": "Minimalistic browser-based Solidity IDE",
"devDependencies": {
"async": "^2.1.2",
@ -144,8 +144,8 @@
"build": "browserify src/index.js -o build/app.js",
"browsertest": "sleep 5 && npm run nightwatch_local",
"csslint": "csslint --ignore=order-alphabetical --errors='errors,duplicate-properties,empty-rules' --exclude-list='assets/css/font-awesome.min.css' assets/css/",
"downloadsolc": "rimraf soljson.js && cd node_modules/solc && wget https://ethereum.github.io/solc-bin/soljson.js && cd ../../",
"downloadsolc_root": "wget https://ethereum.github.io/solc-bin/soljson.js",
"downloadsolc": "rimraf soljson.js && cd node_modules/solc && wget --no-check-certificate https://solc-bin.ethereum.org/soljson.js && cd ../../",
"downloadsolc_root": "wget --no-check-certificate https://solc-bin.ethereum.org/soljson.js",
"lint": "standard | notify-error",
"make-mock-compiler": "node ci/makeMockCompiler.js",
"minify": "uglifyjs --in-source-map inline --source-map-inline -c warnings=false",

@ -318,7 +318,7 @@ function filepanel (appAPI, filesProvider) {
// ------------------ copy files --------------
function copyFiles () {
modalDialogCustom.prompt(null, 'To which other remix-ide instance do you want to copy over all files?', 'https://ethereum.github.io/remix-ide/', (target) => {
modalDialogCustom.prompt(null, 'To which other remix-ide instance do you want to copy over all files?', 'https://remix.ethereum.org', (target) => {
doCopy(target)
})
function doCopy (target) {

@ -174,7 +174,7 @@ function SettingsTab (appAPI = {}, appEvents = {}, opts = {}) {
header.selected = true
versionSelector.appendChild(header)
$.getJSON('https://ethereum.github.io/solc-bin/bin/list.json').done(function (data) {
$.getJSON('https://solc-bin.ethereum.org/bin/list.json').done(function (data) {
// populate version dropdown with all available compiler versions (descending order)
$.each(data.builds.slice().reverse(), function (i, build) {
versionSelector.appendChild(new Option(build.longVersion, build.path))
@ -228,7 +228,7 @@ function loadVersion (version, queryParams, appAPI, el) {
console.log('loading ' + version + ' not allowed')
return
}
url = 'https://ethereum.github.io/solc-bin/bin/' + version
url = 'https://solc-bin.ethereum.org/bin/' + version
}
var isFirefox = typeof InstallTrigger !== 'undefined'
if (document.location.protocol !== 'file:' && Worker !== undefined && isFirefox) {

Loading…
Cancel
Save