From e943e93a2f10a3ac295923cafe6e0c96d7f4b950 Mon Sep 17 00:00:00 2001 From: cp-jagruti-a Date: Tue, 21 Nov 2023 10:06:43 +0530 Subject: [PATCH] Fix unwanted runtime errors on services and android page --- nuxt-frontend/utils.js | 2 ++ 1 file changed, 2 insertions(+) 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; } }