Skip to content

Commit

Permalink
Update dark-mode-preview.js
Browse files Browse the repository at this point in the history
  • Loading branch information
pmarsceill authored Sep 10, 2019
1 parent 41187ed commit 95bdc51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/dark-mode-preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener("DOMContentLoaded", function(){
toggleDarkMode.textContent = buttonCopy[0]
}

addEvent(toggleDarkMode, 'click', function(){
jtd.addEvent(toggleDarkMode, 'click', function(){
if (cssFile.getAttribute('href') === originalCssRef) {
cssFile.setAttribute('href', darkModeCssRef)
updateButtonText(toggleDarkMode)
Expand All @@ -20,4 +20,4 @@ document.addEventListener("DOMContentLoaded", function(){
updateButtonText(toggleDarkMode)
}
})
})
})

0 comments on commit 95bdc51

Please sign in to comment.