diff --git a/static/js/cours.js b/static/js/cours.js index 2e2a93c..c8ea5f3 100644 --- a/static/js/cours.js +++ b/static/js/cours.js @@ -31,7 +31,7 @@ const buildFileTree = (parent, data) => { window.addEventListener("load", () => { const fileTreeElement = document.getElementsByTagName("aside")[0]; - const dataElement = fileTreeElement.getElementsByTagName("div")[0]; + const dataElement = fileTreeElement.getElementsByTagName("span")[0]; buildFileTree( fileTreeElement, diff --git a/templates/cours.html b/templates/cours.html index a46eca7..100c793 100644 --- a/templates/cours.html +++ b/templates/cours.html @@ -8,7 +8,7 @@
{{>navbar.html}}
{{#data}} {{^content}}