Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
don’t pass window through
Browse files Browse the repository at this point in the history
  • Loading branch information
solocommand committed Apr 2, 2021
1 parent 98187f7 commit 6e54fab
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/marko-web-native-x/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ import { endOfContent } from "@parameter1/base-cms-marko-web-native-x/utils/gtm-
export default {
created() {
endOfContent(window);
endOfContent();
}
};
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
created() {
this.observer = new IntersectionObserver((event) => {
if (event[0].isIntersecting) {
endOfContent(window);
endOfContent();
}
});
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
const url = element.getAttribute('href');
element.addEventListener('click', (e) => {
e.preventDefault();
outboundLink(window, url);
outboundLink(url);
});
});
},
Expand Down
2 changes: 1 addition & 1 deletion packages/marko-web-native-x/browser/track-social-share.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default {
created() {
this.EventBus.$on(this.eventName, (event) => {
const provider = get(event, 'provider.name');
share(window, provider);
share(provider);
});
},
};
Expand Down

0 comments on commit 6e54fab

Please sign in to comment.