Skip to content

Commit

Permalink
fix: improve register check, close #876 (#878)
Browse files Browse the repository at this point in the history
  • Loading branch information
liyongning authored Dec 27, 2021
1 parent a1a3e11 commit 3c2ad93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runtimeContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export function isPluginInstalled() {
}

export function isVueRegistered(Vue: VueConstructor) {
return hasOwn(Vue, PluginInstalledFlag)
// resolve issue: https://github.com/vuejs/composition-api/issues/876#issue-1087619365
return vueConstructor && hasOwn(Vue, PluginInstalledFlag)
}

export function getVueConstructor(): VueConstructor {
Expand Down

0 comments on commit 3c2ad93

Please sign in to comment.