Skip to content

Commit

Permalink
✨ Auto use plugin when on browser
Browse files Browse the repository at this point in the history
  • Loading branch information
gluons committed Sep 2, 2017
1 parent c8d53ca commit 8810628
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ function install(Vue) {
Vue.component('highlight-code', HighlightCode);
}

if ((typeof window !== 'undefined') && window.Vue) {
install(window.Vue);
}

export default {
install
};

0 comments on commit 8810628

Please sign in to comment.