Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added no active tab fallback
  • Loading branch information
Alex Mueller committed May 9, 2020
1 parent 7e71cd9 commit 2e2a27d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions final/js/main.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 2e2a27d

Please sign in to comment.