updated cookie consent + fixed #57
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good
This commit is contained in:
@@ -50,13 +50,12 @@ export default {
|
||||
consent.value = true
|
||||
}
|
||||
|
||||
const hasConsentGiven = () => {
|
||||
onMounted(() => {
|
||||
window._paq.push(['requireCookieConsent']);
|
||||
window._paq.push(['trackPageView']);
|
||||
|
||||
if (cookies.get('consent') === 'given')
|
||||
consent.value = true
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
hasConsentGiven()
|
||||
})
|
||||
|
||||
return {handleConsent, handleConsentForget, tracking, consent}
|
||||
@@ -65,6 +64,9 @@ export default {
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.card {
|
||||
z-index: 10;
|
||||
}
|
||||
form {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
|
Reference in New Issue
Block a user