Skip to content

Commit

Permalink
fix injection
Browse files Browse the repository at this point in the history
  • Loading branch information
danilopolani committed Jul 7, 2021
1 parent 0407276 commit efbe53e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nop-app/vue-nop",
"version": "2.1.0",
"version": "2.1.1",
"description": "Vue plugin for Nop",
"keywords": [
"nop",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -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();
}

0 comments on commit efbe53e

Please sign in to comment.