Commit 05fce5c1 authored by chriseth's avatar chriseth Committed by GitHub

Merge pull request #277 from ethereum/absworker

Use absolute url for worker.
parents eb83596b 55bf553d
...@@ -516,7 +516,13 @@ var run = function () { ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment