diff --git a/front-end/index.html b/front-end/index.html index cebb9486..5bccf32c 100644 --- a/front-end/index.html +++ b/front-end/index.html @@ -1190,9 +1190,12 @@ }, }; - const suffix = path.split('.').pop(); - let content = document.querySelector('.content'); + const name = path.split('/').pop(); + const suffix = name.includes('.') + ? name.split('.').pop() + : '__no_suffix__'; + let content = document.querySelector('.content'); content.appendChild( document .getElementById('loading-wrapper-templete')