We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f22084 commit f1a6fadCopy full SHA for f1a6fad
curriculum/.vuepress/components/BottomCallout.vue
@@ -1,17 +1,17 @@
1
<script>
2
-window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }
3
export default {
4
props: ['title', 'subtitle'],
5
- methods: {
6
- plausibleEvent: function(eventName, props) {
+ mounted() {
+ this.plausibleEvent = function(eventName, props) {
7
if (props) {
8
props['path'] = window.location.pathname;
9
} else {
10
props = {
11
path: window.location.pathname
12
}
13
14
- window.plausible(eventName, props);
+ var plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) };
+ plausible(eventName, props);
15
16
17
0 commit comments