Skip to content
Permalink
Browse files

added no active tab fallback

  • Loading branch information
Alex Mueller
Alex Mueller committed May 9, 2020
1 parent 7e71cd9 commit 2e2a27d6afb67fc2353a4207a00954dc64f596d8
Showing with 1 addition and 0 deletions.
  1. +1 −0 final/js/main.js
@@ -72,6 +72,7 @@ tod.addEventListener('click', switchTabs)
notes.addEventListener('click', switchTabs)
//twentyFive.addEventListener('click', switchTabs)
//fiftyTwo.addEventListener('click', switchTabs)
if (localStorage.getItem('activeTab') == null) localStorage.setItem('activeTab', 'tod')
$(`#${localStorage.getItem('activeTab')}`).classList.add('active')
$(`#${localStorage.getItem('activeTab')}-section`).classList.remove('hidden')
function switchTabs(e) {

0 comments on commit 2e2a27d

Please sign in to comment.
You can’t perform that action at this time.