diff --git a/index.js b/index.js index a54b8e5..1d0b8d4 100644 --- a/index.js +++ b/index.js @@ -1,15 +1,16 @@ import { initWideAngle } from "./dist"; import { ref } from 'vue'; +export { initWideAngle } from "./dist"; export default { - install: async (app, options) => { + install: (app, options) => { const waaRef = ref() app.provide('waa', waaRef); initWideAngle(options) .then(waa => { waaRef.value = waa; console.debug("[WAA] Wide Angle Analytics instance available"); - }) - .catch(e => { console.error("Failed to load Wide Angle Plugin", e)}); + }).catch(e => { console.error("[WAA] Failed to load Wide Angle Plugin", e)}); + return waaRef; } }