diff --git a/www/cordovaHTTP.js b/www/cordovaHTTP.js index 0b5e64b..a879e20 100644 --- a/www/cordovaHTTP.js +++ b/www/cordovaHTTP.js @@ -63,6 +63,8 @@ var http = { } }; +module.exports = http; + if (typeof angular !== "undefined") { angular.module('cordovaHTTP', []).factory('cordovaHTTP', function($timeout, $q) { function makePromise(fn, args, async) { @@ -126,4 +128,4 @@ if (typeof angular !== "undefined") { }); } else { window.cordovaHTTP = http; -} \ No newline at end of file +}