Commit 02c7dc72 authored by chriseth's avatar chriseth Committed by GitHub

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

Remove index.html from local file url when loading a compiler
parents 17e692e9 2ec04665
...@@ -547,6 +547,9 @@ var run = function () { ...@@ -547,6 +547,9 @@ var run = function () {
if (version === 'builtin') { if (version === 'builtin') {
var location = window.document.location var location = window.document.location
location = location.protocol + '//' + location.host + '/' + location.pathname location = location.protocol + '//' + location.host + '/' + location.pathname
if (location.endsWith('index.html')) {
location = location.substring(0, location.length - 10)
}
if (!location.endsWith('/')) { if (!location.endsWith('/')) {
location += '/' location += '/'
} }
......
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