Use localstorage for cookiconsent response instead of setting a cookie.

This commit is contained in:
Fredrik Jonsson 2021-12-13 10:50:23 +01:00
commit 767119d014

View file

@ -11,8 +11,6 @@
<script defer src="{{ $mobilemenu.RelPermalink }}"></script>
{{ end -}}
{{ if $.Param "cookieconsent" -}}
{{ $jscookie := resources.Get "js/lib/js.cookie.min.js" | fingerprint -}}
<script src="{{ $jscookie.RelPermalink }}"></script>
{{ $cookieconsent := resources.Get "js/cookieconsent.js" | minify | fingerprint -}}
<script defer src="{{ $cookieconsent.RelPermalink }}"></script>
{{ end -}}