vue-frisbee
Version:
A small wrapper for integrating frisbee to Vuejs
1 lines • 865 B
JavaScript
;var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(){var e=function e(t,o){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e.installed){if(e.installed=!0,!o)return void console.error("You have to install Frisbee");if(window&&(!n.baseURI||""===n.baseURI.trim())){var i=document.getElementsByTagName("base")[0].getAttribute("href");n.baseURI=i||window.location.href}var r=new o(n);t.Frisbee=r,t.prototype.Frisbee=r,t.$http=r,t.prototype.$http=r}};"object"===("undefined"==typeof exports?"undefined":_typeof(exports))?module.exports=e:"function"==typeof define&&define.amd?define([],function(){return e}):window.Vue&&window.Frisbee&&Vue.use(e,window.Frisbee)}();