From b4c01c247e35af29f45f0ceeb2769565c8213230 Mon Sep 17 00:00:00 2001 From: Baraa Al-Masri Date: Wed, 5 Jun 2024 08:25:04 +0300 Subject: [PATCH] fix(router): add mainContentsEl back :) --- app/static/js/router.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/static/js/router.js b/app/static/js/router.js index 537e45f..d220767 100644 --- a/app/static/js/router.js +++ b/app/static/js/router.js @@ -1,5 +1,7 @@ "use strict"; +const mainContentsEl = document.getElementById("main-contents"); + const links = [ { check: (l) => l === "/", element: document.getElementById("/") }, { check: (l) => l === "/about", element: document.getElementById("/about") },