From 6e54fab4a7de77ac885fbd75a3853f33a0a516b9 Mon Sep 17 00:00:00 2001 From: Josh Worden Date: Fri, 2 Apr 2021 10:18:56 -0500 Subject: [PATCH] =?UTF-8?q?don=E2=80=99t=20pass=20window=20through?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/marko-web-native-x/README.md | 2 +- packages/marko-web-native-x/browser/track-end-of-content.vue | 2 +- packages/marko-web-native-x/browser/track-outbound-links.vue | 2 +- packages/marko-web-native-x/browser/track-social-share.vue | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/marko-web-native-x/README.md b/packages/marko-web-native-x/README.md index 8734ef694..0f3cfa04a 100644 --- a/packages/marko-web-native-x/README.md +++ b/packages/marko-web-native-x/README.md @@ -224,7 +224,7 @@ import { endOfContent } from "@parameter1/base-cms-marko-web-native-x/utils/gtm- export default { created() { - endOfContent(window); + endOfContent(); } }; diff --git a/packages/marko-web-native-x/browser/track-end-of-content.vue b/packages/marko-web-native-x/browser/track-end-of-content.vue index a07427ea8..92c7613ea 100644 --- a/packages/marko-web-native-x/browser/track-end-of-content.vue +++ b/packages/marko-web-native-x/browser/track-end-of-content.vue @@ -9,7 +9,7 @@ export default { created() { this.observer = new IntersectionObserver((event) => { if (event[0].isIntersecting) { - endOfContent(window); + endOfContent(); } }); }, diff --git a/packages/marko-web-native-x/browser/track-outbound-links.vue b/packages/marko-web-native-x/browser/track-outbound-links.vue index 0e5b7c36c..b10680583 100644 --- a/packages/marko-web-native-x/browser/track-outbound-links.vue +++ b/packages/marko-web-native-x/browser/track-outbound-links.vue @@ -18,7 +18,7 @@ export default { const url = element.getAttribute('href'); element.addEventListener('click', (e) => { e.preventDefault(); - outboundLink(window, url); + outboundLink(url); }); }); }, diff --git a/packages/marko-web-native-x/browser/track-social-share.vue b/packages/marko-web-native-x/browser/track-social-share.vue index bb5e2617f..ed4d79886 100644 --- a/packages/marko-web-native-x/browser/track-social-share.vue +++ b/packages/marko-web-native-x/browser/track-social-share.vue @@ -17,7 +17,7 @@ export default { created() { this.EventBus.$on(this.eventName, (event) => { const provider = get(event, 'provider.name'); - share(window, provider); + share(provider); }); }, };