sandoche / Darkmode.js

🌓 Add a dark-mode / night-mode to your website in a few seconds
https://darkmodejs.learn.uno
MIT License
2.72k stars 176 forks source link

Usage without the widget displays a button #31

Closed sandoche closed 4 years ago

sandoche commented 4 years ago

I use Darkmode.js programmatically without displaying the widget, since the version 1.5.4 I have the following bug (a little empty button appearing)

Capture d’écran de 2020-01-02 11-18-06

tmbv93 commented 4 years ago

I also had this issue! I think it started here: #27 const button = document.createElement('button');

Added a PR #34 to fix it!

sandoche commented 4 years ago

Fixed in #34