From 479f6119b46030dd34ce080327673de5abfa13fd Mon Sep 17 00:00:00 2001 From: hippoz Date: Sun, 25 Oct 2020 16:26:58 +0200 Subject: [PATCH] fix whoopsie where i didnt account for the fact the the leading slash is trimmed --- res/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/index.js b/res/index.js index 510a5ab..73a5ae8 100644 --- a/res/index.js +++ b/res/index.js @@ -14,7 +14,7 @@ const peformRouteAction = (pathname) => { const route = stripTrailingSlash(pathname); switch (route) { - case '/': { + case '': { A('#content-container').load('/pages/home.html'); break; }