lukeraymonddowning / honey

A spam prevention package for Laravel, providing honeypot techniques, ip blocking and beautifully simple Recaptcha integration. Stop spam. Use Honey.
MIT License
398 stars 23 forks source link

Don't render script tag when JavaScript check is disabled #28

Closed adriaanzon closed 3 years ago

adriaanzon commented 3 years ago

I'm using Honey alongside Vue 3, and I'm getting a console warning saying that the script tags will be ignored by Vue. For some reason, when compiling the production JavaScript build, the script tag triggers a syntax error, resulting in a blank page.

I’ve been using the fix supplied in this PR and that solves this problem for me. Although I’m not sure if this causes a problem if you’re using Honey in a stand-alone way, without the config file (I’m not sure if that is supported).

lukeraymonddowning commented 3 years ago

@adriaanzon I'm so sorry, I completely missed this PR!

I'll give it a test later and merge if everything is golden. Thanks for all your work!