|
|
@ -516,7 +516,13 @@ var run = function () { |
|
|
|
queryParams.update({ version: version }); |
|
|
|
queryParams.update({ version: version }); |
|
|
|
var url; |
|
|
|
var url; |
|
|
|
if (version === 'builtin') { |
|
|
|
if (version === 'builtin') { |
|
|
|
url = 'soljson.js'; |
|
|
|
var location = window.document.location; |
|
|
|
|
|
|
|
location = location.protocol + '//' + location.host + '/' + location.pathname; |
|
|
|
|
|
|
|
if (!location.endsWith('/')) { |
|
|
|
|
|
|
|
location += '/'; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
url = location + 'soljson.js'; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
url = 'https://ethereum.github.io/solc-bin/bin/' + version; |
|
|
|
url = 'https://ethereum.github.io/solc-bin/bin/' + version; |
|
|
|
} |
|
|
|
} |
|
|
|