Skip to content

Commit

Permalink
feat: install the plugin automatically if Vue has been added to the g…
Browse files Browse the repository at this point in the history
…lobal scope
  • Loading branch information
mmorainville committed Feb 18, 2018
1 parent 180b4a9 commit 4f469c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ const VueTour = {
}

export default VueTour

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

0 comments on commit 4f469c6

Please sign in to comment.