Documentation

This commit is contained in:
Jarek Rozanski 2023-05-18 12:33:46 +00:00
parent 33ce331413
commit 52e1fa2b6f
13 changed files with 270 additions and 64 deletions

View file

@ -0,0 +1,10 @@
import { useNuxtApp } from '#imports';
export function useWaaEvent (name: string, params?: Record<string, any>) {
const waa = useNuxtApp().$waa
if(waa && waa.value) {
waa.value.dispatchEvent(name, params);
} else {
console.debug("[WAA] Wide Angle Analytics is not yest initialized");
}
}