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 @@