updated cookie consent + fixed #57
All checks were successful
CSGOWTF/csgowtf/pipeline/head This commit looks good

This commit is contained in:
2022-02-02 11:55:23 +01:00
parent 4b040fa87b
commit 1916168ba1

View File

@@ -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;