mirror of
https://github.com/kognise/water.css.git
synced 2025-12-06 06:44:58 +01:00
Merge pull request #62 from pawptart/fix/ie-switch-button
Changed switch button function for IE11 compatibility
This commit is contained in:
commit
93f29bb507
1 changed files with 1 additions and 1 deletions
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue