pressidium / pressidium-cookie-consent

🍪 Lightweight, user-friendly and customizable cookie consent banner to help you comply with the EU GDPR cookie law and CCPA regulations.
https://wordpress.org/plugins/pressidium-cookie-consent/
GNU General Public License v2.0
43 stars 3 forks source link

Option to hide console.log messages #42

Closed williarin closed 7 months ago

williarin commented 7 months ago

A nice feature would be to have a "Debug mode" option in the plugin that will show the console.log messages, and hide them all if the option is off. I think there shouldn't be any message in production mode.

over-engineer commented 7 months ago

Hey, @williarin!

Thank you for sharing your valuable feedback once more.

I think there shouldn't be any message in production mode.

I totally agree with that. The issue was addressed in 1.3.0 (which was just relased on the Plugin Directory) by completely disabling the console.log()s.

Making it an option would require modifications to the underlying orestbida/cookieconsent library, which I’d prefer to avoid as it’d make updating the library unnecessarily complex.