From 2ec04665bab9150177b77c96b03443e49a693893 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 14 Nov 2016 18:23:52 +0000 Subject: [PATCH] Remove index.html from local file url when loading a compiler --- src/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app.js b/src/app.js index cbc899adda..97fc871cad 100644 --- a/src/app.js +++ b/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 += '/' }