diff --git a/nuxt-frontend/utils.js b/nuxt-frontend/utils.js index 7c383965a..b718e8d63 100644 --- a/nuxt-frontend/utils.js +++ b/nuxt-frontend/utils.js @@ -2,12 +2,14 @@ import { useElementVisibility } from "@vueuse/core"; import mixpanel from "mixpanel-browser"; function elementInViewPort(refs) { + console.log("refs", refs) let element; for (const key of Object.keys(refs)) { if (refs[key] && refs[key].length > 0) { for (const ele of refs[key]) { if (useElementVisibility(ele).value) { element = key; + console.log(element) break; } }