Remove trailing slash from pathname in iceLoc

This commit is contained in:
mattpass
2020-06-10 17:55:49 +01:00
parent f750804520
commit d4ec04a5ec

View File

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