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

Blogger Error #6

Open RuthlessRuler opened 5 years ago

RuthlessRuler commented 5 years ago

I'm trying to add this on my blogger blog, but i get the following Error. the Ocde i implemented is below.

Uncaught TypeError: Cannot read property 'insertBefore' of null at new e (darkmode-js.min.js:1) at (index):37

`

`

Also, Is there a way to use it someway show that it appears with a set of FontAwesome Icons but on clicking the icon the website returns dark theme. I would prefer that instead of a floating Button.

fdemir commented 5 years ago

i have same error. How can i solve that?

NaveenDA commented 4 years ago

This problem might raise if the your webpage doesn't have tag. Please let me know your webpage have the tag.

asdf2014 commented 4 years ago

Also encountered...

quanengineering commented 4 years ago

Me too :(

sandoche commented 4 years ago

Please try this code: https://github.com/sandoche/Darkmode.js/issues/8#issuecomment-673464904