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) { ...@@ -17,7 +17,9 @@ function NavigateToSection(sectionIndex) {
DOMNavigationItems.forEach(function(DOMNavigation) { DOMNavigationItems.forEach(function(DOMNavigation) {
DOMNavigation.classList.remove("active"); DOMNavigation.classList.remove("active");
}); });
DOMNavigationItems[sectionIndex].classList.add("active"); if(DOMNavigationItems[sectionIndex]) {
DOMNavigationItems[sectionIndex].classList.add("active");
}
// Section // Section
DOMSections.forEach(function(DOMSection) { DOMSections.forEach(function(DOMSection) {
...@@ -41,6 +43,7 @@ function NavigateToSection(sectionIndex) { ...@@ -41,6 +43,7 @@ function NavigateToSection(sectionIndex) {
break; break;
case 3: case 3:
// Settings // Settings
InitSettings();
break; break;
case 4: case 4:
// SongDetail // 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