mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Fix JS error on shops without cookie consent
This commit is contained in:
@@ -28,7 +28,7 @@ $(function () {
|
||||
document.dispatchEvent(e)
|
||||
}
|
||||
|
||||
if (!storage_key) {
|
||||
if (!storage_key || !consent_modal) {
|
||||
// We are not on a page where the consent should run, fire the change event with empty consent but don't
|
||||
// actually store anything.
|
||||
update_consent(null, false);
|
||||
|
||||
Reference in New Issue
Block a user