From 035fc6ac42af00a7c6dbc412a3fa79421004d85a Mon Sep 17 00:00:00 2001 From: harlan Date: Mon, 25 Mar 2024 14:21:49 +1100 Subject: [PATCH] chore: sync playground --- playground/pages/analytics/cloudflare.vue | 2 +- playground/pages/analytics/fathom.vue | 2 +- playground/pages/index.vue | 74 ++++++++++++----------- 3 files changed, 40 insertions(+), 38 deletions(-) diff --git a/playground/pages/analytics/cloudflare.vue b/playground/pages/analytics/cloudflare.vue index b116a389..a736e862 100644 --- a/playground/pages/analytics/cloudflare.vue +++ b/playground/pages/analytics/cloudflare.vue @@ -20,7 +20,7 @@ $script.load() // this will be triggered once the script is ready async // trackPageview({ url: '/fathom' }) // we can manually wait for the script to be ready (TODO error handling) -$script.waitForLoad().then(() => { +$scrip.then(() => { // eslint-disable-next-line no-console console.log('cloudflare analytics is ready') }) diff --git a/playground/pages/analytics/fathom.vue b/playground/pages/analytics/fathom.vue index e3c206c2..cfe72417 100644 --- a/playground/pages/analytics/fathom.vue +++ b/playground/pages/analytics/fathom.vue @@ -19,7 +19,7 @@ const { $script, trackPageview, trackGoal } = useFathomAnalytics({ // this will be triggered once the script is ready async trackPageview({ url: '/fathom' }) // we can manually wait for the script to be ready (TODO error handling) -$script.waitForLoad().then(() => { +$script.then(() => { // eslint-disable-next-line no-console console.log('fathom is ready') }) diff --git a/playground/pages/index.vue b/playground/pages/index.vue index 78c010f2..926e0396 100644 --- a/playground/pages/index.vue +++ b/playground/pages/index.vue @@ -1,29 +1,31 @@