Set path and origin incase ICEcoder is in root of wwwroot

This commit is contained in:
mattpass
2020-06-10 17:49:45 +01:00
parent 0179e11401
commit f750804520

View File

@@ -4,7 +4,7 @@ const get = function(elem) {
};
// URL we're viewing ICEcoder from
const iceLoc = window.location.pathname;
const iceLoc = window.location.origin + window.location.pathname.replace("/", "");
// Main ICEcoder object
var ICEcoder = {