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
|
consent.value = true
|
||||||
}
|
}
|
||||||
|
|
||||||
const hasConsentGiven = () => {
|
onMounted(() => {
|
||||||
|
window._paq.push(['requireCookieConsent']);
|
||||||
|
window._paq.push(['trackPageView']);
|
||||||
|
|
||||||
if (cookies.get('consent') === 'given')
|
if (cookies.get('consent') === 'given')
|
||||||
consent.value = true
|
consent.value = true
|
||||||
}
|
|
||||||
|
|
||||||
onMounted(() => {
|
|
||||||
hasConsentGiven()
|
|
||||||
})
|
})
|
||||||
|
|
||||||
return {handleConsent, handleConsentForget, tracking, consent}
|
return {handleConsent, handleConsentForget, tracking, consent}
|
||||||
@@ -65,6 +64,9 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.card {
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
form {
|
form {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
|
Reference in New Issue
Block a user