From ef34c247ab2813d44555b6896709c341e813557a Mon Sep 17 00:00:00 2001 From: Jarek Rozanski Date: Thu, 18 May 2023 12:13:43 +0000 Subject: [PATCH] Explicitly export initialization function --- index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; } }