Skip to content

Commit

Permalink
Merge pull request #128 from cdrini/fix-vue-global
Browse files Browse the repository at this point in the history
Fix Vue.use removed in Vue 3
  • Loading branch information
cdrini committed Nov 19, 2023
2 parents 7b2214a + e5cb634 commit e2f5131
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export default AsyncComputed
export { AsyncComputed as AsyncComputedPlugin, AsyncComputedMixin }

/* istanbul ignore if */
if (typeof window !== 'undefined' && window.Vue) {
// Auto install in dist mode
window.Vue.use(AsyncComputed)
if (typeof window !== 'undefined') {
// Provide as global in dist mode
window.AsyncComputed = AsyncComputed
}

0 comments on commit e2f5131

Please sign in to comment.