mirror of
https://github.com/kognise/water.css.git
synced 2025-08-16 10:04:41 +02:00
Merge pull request #62 from pawptart/fix/ie-switch-button
Changed switch button function for IE11 compatibility
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
document.getElementById('switch').addEventListener('click', () => {
|
||||
document.getElementById('switch').addEventListener('click', function() {
|
||||
const stylesheet = document.getElementById('stylesheet')
|
||||
const ph = document.getElementById('ph')
|
||||
if (stylesheet.getAttribute('href') === 'dist/dark.css') {
|
||||
|
Reference in New Issue
Block a user