diff --git a/assets/js/icecoder.js b/assets/js/icecoder.js index 49b89b7..3e7c36e 100644 --- a/assets/js/icecoder.js +++ b/assets/js/icecoder.js @@ -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 = {