Uncaught TypeError: Cannot set properties of null (setting 'onclick')
I was just testing some code and noticed i had this error on my site.
Locate the error in the site code
I removed this script, so the whole thing is now not required, as i opted for the auto dark mode, rather than the toggle.
This was due to me removing a onclick target, and still leaving the code there to bind do it.