Skip to content

Commit

Permalink
fix(#831): checkboxes display when user accept or deny cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
MewenLeHo committed Oct 20, 2021
1 parent 6879ddf commit 0fcad81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/assets/js/tac.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
'<div class="form-check form-switch my-2 my-lg-0"><input class="form-check-input ms-0" type="checkbox" id="googletagmanagerAllowed" aria-describedby="tacCLgoogletagmanager" onchange="' +
choiceEvent +
'"' +
((document.cookie.match(/^(?:.*;)?\s*cookie-consent\s*=\s*([^;]+)(?:.*)?$/)||[,null])[1] == '!googletagmanager=true' ? "checked" : "") +
((document.cookie.match(/^(?:.*;)?\s*cookie-consent\s*=\s*([^;]+)(?:.*)?$/) || [null])[1] === '!googletagmanager=true' ? 'checked' : '') +
'><label class="form-check-label visually-hidden" for="googletagmanagerAllowed">Google Tag Manager</label></div>'
)
ask.innerHTML = ''
Expand Down

0 comments on commit 0fcad81

Please sign in to comment.