Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
Add additional check if plugin has already been registered
Browse files Browse the repository at this point in the history
  • Loading branch information
janschoenherr committed Mar 2, 2021
1 parent fe268fa commit f6c3cde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function plugin(Vue) {
});
}

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

Expand Down

0 comments on commit f6c3cde

Please sign in to comment.