Skip to content
Permalink
Browse files

Update dark-mode-preview.js

  • Loading branch information
pmarsceill committed Sep 10, 2019
1 parent 41187ed commit 95bdc51a0a0c6598bb1bdc9204af763891342604
Showing with 2 additions and 2 deletions.
  1. +2 −2 assets/js/dark-mode-preview.js
@@ -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)
@@ -20,4 +20,4 @@ document.addEventListener("DOMContentLoaded", function(){
updateButtonText(toggleDarkMode)
}
})
})
})

0 comments on commit 95bdc51

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