Merge pull request #277 from ethereum/absworker

Use absolute url for worker.
pull/1/head
chriseth 8 years ago committed by GitHub
commit 05fce5c14b
  1. 8
      src/app.js

@ -516,7 +516,13 @@ var run = function () {
queryParams.update({ version: version });
var url;
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 {
url = 'https://ethereum.github.io/solc-bin/bin/' + version;
}

Loading…
Cancel
Save