Skip to content

Commit ae58999

Browse files
fix(analytics): ensure boolean attributes render correctly in script tag
1 parent e38bb47 commit ae58999

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resources/views/script.blade.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
@if(config('umami.host_url')) data-host-url="{{ config('umami.host_url') }}" @endif
55
@if(config('umami.domains')) data-domains="{{ config('umami.domains') }}" @endif
66
@if(config('umami.tag')) data-tag="{{ config('umami.tag') }}" @endif
7-
data-auto-track="{{ config('umami.auto_track') }}"
8-
data-exclude-search="{{ config('umami.exclude_search') }}"
9-
data-exclude-hash="{{ config('umami.exclude_hash') }}">
7+
data-auto-track="{{ config('umami.auto_track') ? 'true' : 'false' }}"
8+
data-exclude-search="{{ config('umami.exclude_search') ? 'true' : 'false' }}"
9+
data-exclude-hash="{{ config('umami.exclude_hash') ? 'true' : 'false' }}">
1010
</script>
1111
@endif

0 commit comments

Comments
 (0)