Commit 2ec04665 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Remove index.html from local file url when loading a compiler

parent 384121d5
......@@ -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 += '/'
}
......
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