Skip to content

Commit 7963435

Browse files
committed
feat: change plugin initialization
1 parent efc82a1 commit 7963435

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/plugin.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ declare module 'vue' {
2929
*
3030
* @see https://docs.kuzzle.io/sdk/js/7/core-classes/kuzzle/constructor/#options
3131
*/
32-
export const VueKuzzle: Plugin = (Vue, options: VueKuzzleOptions) => {
33-
const sdkOptions = options?.sdkOptions ?? {};
34-
Vue.config.globalProperties.$kuzzle = instantiateKuzzleSDK(options?.backends, sdkOptions);
32+
export const VueKuzzle: Plugin = (Vue, kuzzle) => {
33+
Vue.config.globalProperties.$kuzzle = kuzzle;
3534
};

0 commit comments

Comments
 (0)