mirror of
https://github.com/silkimen/cordova-plugin-advanced-http.git
synced 2026-05-31 00:00:07 +08:00
Merge pull request #23 from pvsaikrishna/moduleexports
Exporting http object to use it through clobbers target defined .
This commit is contained in:
Vendored
+3
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user