Skip to content

Commit

Permalink
feat: register the component automatically once loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Jan 26, 2019
1 parent c03c9ca commit f538b12
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 @@ -4,4 +4,8 @@ Feather.install = (Vue) => {
Vue.component(Feather.name, Feather);
};

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

export default Feather;

0 comments on commit f538b12

Please sign in to comment.