Title: Uncaught ReferenceError: Darkmode is not defined
Last modified: August 8, 2019

---

# Uncaught ReferenceError: Darkmode is not defined

 *  Resolved [Cuong Thach](https://wordpress.org/support/users/cuongtalentccc/)
 * (@cuongtalentccc)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-darkmode-is-not-defined/)
 * I’m facing this issue and have no idea to fix it.
 * The issue made the Blackout didn’t work at my site.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jose Sotelo](https://wordpress.org/support/users/josesotelocohen/)
 * (@josesotelocohen)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-darkmode-is-not-defined/#post-12354853)
 * Hello Cuong!
 * This is caused by Autoptimize, you need to exclude our files from the merging/
   optimization.

Viewing 1 replies (of 1 total)

The topic ‘Uncaught ReferenceError: Darkmode is not defined’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/blackout-darkmode-widget_303030.svg)
 * [Blackout: Dark Mode Widget](https://wordpress.org/plugins/blackout-darkmode-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/blackout-darkmode-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/blackout-darkmode-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/blackout-darkmode-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/blackout-darkmode-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/blackout-darkmode-widget/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Jose Sotelo](https://wordpress.org/support/users/josesotelocohen/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/uncaught-referenceerror-darkmode-is-not-defined/#post-12354853)
 * Status: resolved