Merge branch 'master' into css-cleanup-v2

This commit is contained in:
Kognise 2019-04-27 14:47:30 -04:00 committed by GitHub
commit 5bf4ff7429
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
document.getElementById('switch').addEventListener('click', () => {
document.getElementById('switch').addEventListener('click', function() {
const stylesheet = document.getElementById('stylesheet')
if (stylesheet.getAttribute('href') === 'dist/dark.min.css') {
stylesheet.setAttribute('href', 'dist/light.min.css')