mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 07:13:59 +01:00
Remove trailing slash from pathname in iceLoc
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user