Merge pull request #326 from ethereum/proper-file-url

Remove index.html from local file url when loading a compiler
pull/1/head
chriseth 8 years ago committed by GitHub
commit 02c7dc72e3
  1. 3
      src/app.js

@ -547,6 +547,9 @@ var run = function () {
if (version === 'builtin') {
var location = window.document.location
location = location.protocol + '//' + location.host + '/' + location.pathname
if (location.endsWith('index.html')) {
location = location.substring(0, location.length - 10)
}
if (!location.endsWith('/')) {
location += '/'
}

Loading…
Cancel
Save