From efbe53e8a5275855e90a05e4acee545b993c74c3 Mon Sep 17 00:00:00 2001 From: danilopolani Date: Wed, 7 Jul 2021 23:49:57 +0200 Subject: [PATCH] fix injection --- package.json | 2 +- src/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 9437149..60c9561 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nop-app/vue-nop", - "version": "2.1.0", + "version": "2.1.1", "description": "Vue plugin for Nop", "keywords": [ "nop", diff --git a/src/index.js b/src/index.js index f86c3fb..d798e1f 100644 --- a/src/index.js +++ b/src/index.js @@ -1,12 +1,12 @@ import bootstrap from './bootstrap'; -import config, { update } from './config'; +import { update } from './config'; import lib from './lib'; export default function install (Vue, options = {}) { update({ ...options, $vue: Vue }); // Create a deafult empty function to prevent errors - config.$vue.prototype.$nop = config.$vue.$nop = lib; + Vue.prototype.$nop = Vue.$nop = lib bootstrap(); }