whitecube / laravel-cookie-consent

Register, configure and ask for cookies consent in a EU-compliant way
MIT License
312 stars 37 forks source link

Sentry TypeError #28

Open PaulUniHomes opened 8 months ago

PaulUniHomes commented 8 months ago

We're seeing issues in Sentry relating to the cookie consent.

TypeError
undefined is not an object (evaluating 'window.LaravelCookieConsent.acceptAll')

It's highlighting the following code as the issue.

<script data-cookie-consent>
{snip}  function(e){e.preventDefault(),window.LaravelCookieConsent.acceptAll(),l()}(e)})),r.addEventListener("submit",(function(e){return function( {snip}
</script>