Commit a4b3d7cb authored by Andreas Heimann's avatar Andreas Heimann

added settings init, fixed navigation item error

parent caa532d0
......@@ -17,7 +17,9 @@ function NavigateToSection(sectionIndex) {
DOMNavigationItems.forEach(function(DOMNavigation) {
DOMNavigation.classList.remove("active");
});
DOMNavigationItems[sectionIndex].classList.add("active");
if(DOMNavigationItems[sectionIndex]) {
DOMNavigationItems[sectionIndex].classList.add("active");
}
// Section
DOMSections.forEach(function(DOMSection) {
......@@ -41,6 +43,7 @@ function NavigateToSection(sectionIndex) {
break;
case 3:
// Settings
InitSettings();
break;
case 4:
// SongDetail
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment