Skip to content

Commit ffe9d75

Browse files
authored
Merge pull request #91 from imcvampire/imcvampire-patch-2
Check window.Vue.use for vue 2
2 parents 039d554 + d4dab9f commit ffe9d75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ if (typeof exports == "object") {
5353
module.exports = plugin;
5454
} else if (typeof define == "function" && define.amd) {
5555
define([], function(){ return plugin });
56-
} else if (window.Vue && window.axios) {
56+
} else if (window.Vue && window.axios && window.Vue.use) { // Vue.use is only available in VueJS 2.0
5757
Vue.use(plugin, window.axios);
5858
}
5959
})();

0 commit comments

Comments
 (0)