|
|
@ -559,13 +559,13 @@ |
|
|
|
// "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.
|
|
|
|
initializeWorker(); |
|
|
|
initializeWorker(); |
|
|
|
worker.postMessage({cmd: 'loadVersion', data: 'https://github.com/ethereum/solc-bin/raw/master/bin/' + version}); |
|
|
|
worker.postMessage({cmd: 'loadVersion', data: 'https://ethereum.github.io/solc-bin/bin/' + version}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
Module = null; |
|
|
|
Module = null; |
|
|
|
compileJSON = function(source, optimize) { compilationFinished('{}'); }; |
|
|
|
compileJSON = function(source, optimize) { compilationFinished('{}'); }; |
|
|
|
var newScript = document.createElement('script'); |
|
|
|
var newScript = document.createElement('script'); |
|
|
|
newScript.type = 'text/javascript'; |
|
|
|
newScript.type = 'text/javascript'; |
|
|
|
newScript.src = 'https://github.com/ethereum/solc-bin/raw/master/bin/' + version; |
|
|
|
newScript.src = 'https://ethereum.github.io/solc-bin/bin/' + version; |
|
|
|
document.getElementsByTagName("head")[0].appendChild(newScript); |
|
|
|
document.getElementsByTagName("head")[0].appendChild(newScript); |
|
|
|
var check = window.setInterval(function() { |
|
|
|
var check = window.setInterval(function() { |
|
|
|
if (!Module) return; |
|
|
|
if (!Module) return; |
|
|
|