We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 039d554 + d4dab9f commit ffe9d75Copy full SHA for ffe9d75
src/index.js
@@ -53,7 +53,7 @@ if (typeof exports == "object") {
53
module.exports = plugin;
54
} else if (typeof define == "function" && define.amd) {
55
define([], function(){ return plugin });
56
-} else if (window.Vue && window.axios) {
+} else if (window.Vue && window.axios && window.Vue.use) { // Vue.use is only available in VueJS 2.0
57
Vue.use(plugin, window.axios);
58
}
59
})();
0 commit comments