From 63b62ff80ab6fc5ae207fee36200dc6ecb5dc92e Mon Sep 17 00:00:00 2001 From: Ethan O'Brien Date: Wed, 25 Aug 2021 14:32:47 -0500 Subject: [PATCH] Fix #10 --- data/loader.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/loader.js b/data/loader.js index 2c9561a..d41a8a6 100644 --- a/data/loader.js +++ b/data/loader.js @@ -42,6 +42,9 @@ if (! path2Send.startsWith('/') && path2Send.split('://').length == 1 && path2Se path2Send = window.location.protocol + '//' + window.location.host + path2Send EJS_pathtodata = path2Send } +if (EJS_pathtodata.startsWith('/')) { + EJS_pathtodata = window.location.protocol + '//' + window.location.host + path2Send +} if (!EJS_pathtodata.endsWith('/')) { EJS_pathtodata = EJS_pathtodata+'/'