From d4ec04a5ec38be1b32acb6c884c4ab006a51e793 Mon Sep 17 00:00:00 2001 From: mattpass Date: Wed, 10 Jun 2020 17:55:49 +0100 Subject: [PATCH] Remove trailing slash from pathname in iceLoc --- assets/js/icecoder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = {