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 20, 2023
1 parent 337fca7 commit 17d2255
Showing 1 changed file with 30 additions and 31 deletions.
61 changes: 30 additions & 31 deletions nuxt-frontend/pages/android-app-development.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,24 @@
<div>
<Header />
<div class="xll:bg-black-core/[90%] 3xl:bg-white">
<LandingSection ref="landing" />
<LandingSection />
</div>
<DevelopmentSection ref="development" />
<CaseStudy ref="casestudy" />
<DevelopmentSection />
<CaseStudy />
<PinkCtaSection class="hidden lg:block" />
<SuccessStorySection ref="successstory" />
<SuccessStorySection />
<BlackCtaSection />
<BlogSection />
<FaqSection />
<CtaSection />
<NewFooter ref="footer" />
<NewFooter />
</div>
</template>

<script>
<script>
import Header from "@/components/partials/NewHeader.vue";
import config from "@/config.js";
import { defineAsyncComponent } from "vue";
import { elementInViewPort } from "@/utils.js";
import LandingSection from "@/components/android-app-development/LandingSection.vue";
import DevelopmentSection from "@/components/android-app-development/DevelopmentSection.vue";
const CaseStudy = defineAsyncComponent(() =>
Expand Down Expand Up @@ -75,32 +74,32 @@ export default {
},
data() {
return {
event: "",
events: {
landing: "view_android_development_landing_section",
development: "view_android_development_section",
casestudy: "view_android_development_casestudy_section",
successstory: "view_android_development_success_story_section",
footer: "view_android_development_footer",
},
// event: "",
// events: {
// landing: "view_android_development_landing_section",
// development: "view_android_development_section",
// casestudy: "view_android_development_casestudy_section",
// successstory: "view_android_development_success_story_section",
// footer: "view_android_development_footer",
// },
};
},
inject: ["mixpanel"],
mounted() {
window.addEventListener("scroll", this.sendEvent);
this.$mixpanel.track("view_android_development_page");
},
unmounted() {
window.removeEventListener("scroll", this.sendEvent);
},
methods: {
sendEvent() {
const event = this.events[elementInViewPort(this.$refs)];
if (event && this.event !== event) {
this.event = event;
this.$mixpanel.track(event);
}
},
},
// mounted() {
// window.addEventListener("scroll", this.sendEvent);
// this.$mixpanel.track("view_android_development_page");
// },
// unmounted() {
// window.removeEventListener("scroll", this.sendEvent);
// },
// methods: {
// sendEvent() {
// const event = this.events[elementInViewPort(this.$refs)];
// if (event && this.event !== event) {
// this.event = event;
// this.$mixpanel.track(event);
// }
// },
// },
};
</script>

0 comments on commit 17d2255

Please sign in to comment.