Skip to content

Commit

Permalink
Fix unwanted runtime errors on services and android page
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-jagruti-a committed Nov 21, 2023
1 parent 3b93c8b commit e943e93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nuxt-frontend/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit e943e93

Please sign in to comment.