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 }); 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;
} }

Loading…
Cancel
Save