From f750804520cb68494f3462afbc9b4677ed7d2ffb Mon Sep 17 00:00:00 2001 From: mattpass Date: Wed, 10 Jun 2020 17:49:45 +0100 Subject: [PATCH] Set path and origin incase ICEcoder is in root of wwwroot --- 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 e30b7c5..49b89b7 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.pathname; +const iceLoc = window.location.origin + window.location.pathname.replace("/", ""); // Main ICEcoder object var ICEcoder = {