Browse Source

Turn TS off on CookieMonster because what the fuck...

Andrea Franceschini 2 years ago
parent
commit
986418bdbd
1 changed files with 4 additions and 4 deletions
  1. 4 4
      components/CookieMonster.vue

+ 4 - 4
components/CookieMonster.vue

@@ -10,11 +10,11 @@
                         <p class="col-span-5 sm:col-span-11"><strong>Consent</strong>: I must use a cookie to keep track of your choices, no way around it.</p>
                     </div>
                     <div class="sm:pl-4 pt-2 grid sm:grid-cols-12 grid-cols-6">
-                        <p><input type="checkbox" class="form-control toggle toggle-primary" v-model="consentStore.analytics" @change="(e: Event) => consentStore.analytics = (e.target as HTMLInputElement).checked" /></p>
+                        <p><input type="checkbox" class="form-control toggle toggle-primary" v-model="consentStore.analytics" @change="(e) => { consentStore.analytics = e.target.checked }" /></p>
                         <p class="col-span-5 sm:col-span-11"><strong>Analytics</strong>: optional, but it'd be great if you agreed 😊</p>
                     </div>
                     <div class="sm:pl-4 pt-2 grid sm:grid-cols-12 grid-cols-6">
-                        <p><input type="checkbox" class="form-control toggle toggle-primary" v-model="consentStore.ads" @change="(e: Event) => consentStore.ads = (e.target as HTMLInputElement).checked" /></p>
+                        <p><input type="checkbox" class="form-control toggle toggle-primary" v-model="consentStore.ads" @change="(e) => { consentStore.ads = e.target.checked }" /></p>
                         <p class="col-span-5 sm:col-span-11"><strong>Advertising</strong>: fully optional, feel free to skip this one.</p>
                     </div>
                     <p class="pt-2">You can read more on how I use cookies on <a href="/cookies">this page</a>.</p>
@@ -32,7 +32,7 @@
     </div>
 </template>
 
-<script lang="ts" setup>
+<script setup>
 import { useConsent } from '~~/store/consent';
 const consentStore = useConsent();
 
@@ -47,7 +47,7 @@ const rejectAll = () => {
     isOpen.value = false;
 }
 
-const acceptAll = () => {
+const acceptAll = (e) => {
     window._paq.push(['rememberCookieConsentGiven']);
     consentStore.analytics = true;
     consentStore.ads = true;