Skip to content

Commit

Permalink
Idk
Browse files Browse the repository at this point in the history
  • Loading branch information
ASoldo committed Jan 8, 2024
1 parent 80009ca commit d07039a
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,19 +153,19 @@ const {
} = useCookieControl();
// example: react to a cookie being accepted
watch(
() => cookiesEnabledIds.value,
(current, previous) => {
if (
!previous?.includes("google-analytics") &&
current?.includes("google-analytics")
) {
// cookie with id `google-analytics` got added
window.location.reload(); // placeholder for your custom change handler
}
},
{ deep: true },
);
// watch(
// () => cookiesEnabledIds.value,
// (current, previous) => {
// if (
// !previous?.includes("google-analytics") &&
// current?.includes("google-analytics")
// ) {
// // cookie with id `google-analytics` got added
// window.location.reload(); // placeholder for your custom change handler
// }
// },
// { deep: true },
// );
</script>

<style scoped>
Expand Down

0 comments on commit d07039a

Please sign in to comment.