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

pull/1/head
Alex Beregszaszi 8 years ago
parent 384121d5e0
commit 2ec04665ba
  1. 3
      src/app.js

@ -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 += '/'
} }

Loading…
Cancel
Save