Skip to content

Commit

Permalink
Fix order issue with embeds consent
Browse files Browse the repository at this point in the history
  • Loading branch information
robdekort committed Nov 21, 2023
1 parent 0988c57 commit 1c9f8f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/components/_cookie_banner.antlers.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ <h2 class="text-2xl font-bold">{{ trans:strings.cookie_title }}</h2>
{{# Save all options. #}}
<button
@click="
$store.cookieBanner.setConsent(true),
cookieConsentDate = '{{ now format="Y-m-d" }}'
{{ if seo:tracker_type == 'gtag' || seo:tracker_type == 'gtm' }}
, analyticsStorage = true
Expand All @@ -171,6 +170,7 @@ <h2 class="text-2xl font-bold">{{ trans:strings.cookie_title }}</h2>
{{ if seo:embeds }}
, embeds = true
{{ /if }}
, $store.cookieBanner.setConsent(true)
"
type="button"
class="px-4 py-2 bg-primary rounded text-sm font-bold text-white focus:outline-none focus-visible:ring focus-visible:ring-offset-2 focus-visible:ring-primary motion-safe:transition"
Expand Down

0 comments on commit 1c9f8f2

Please sign in to comment.