minor changes for cleanup

This commit is contained in:
Sefa Ilkimen
2016-11-14 15:13:26 +01:00
parent a0edca1b1d
commit 8fc4c2b9cb
3 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ using the Cordova / Phonegap command line interface.
### Without AngularJS
This plugin registers a `cordovaHTTP` global on window
This plugin registers a global object located at `cordova.plugin.http`.
### With AngularJS
+4 -4
View File
@@ -4,20 +4,20 @@
id="cordova-plugin-advanced-http"
version="1.3.0">
<name>SSL Pinning</name>
<name>Advanced HTTP plugin</name>
<description>
Cordova / Phonegap plugin for communicating with HTTP servers using SSL pinning
</description>
<engines>
<engine name="cordova" version=">=3.0.0" />
<engine name="cordova" version=">=3.5.0" />
</engines>
<dependency id="cordova-plugin-file" version=">=2.0.0" />
<js-module src="www/cordovaHTTP.js" name="CordovaHttpPlugin">
<clobbers target="CordovaHttpPlugin" />
<js-module src="www/cordovaHttp.js" name="http">
<clobbers target="cordova.plugin.http" />
</js-module>
<!-- ios -->
+2 -4
View File
@@ -135,8 +135,6 @@ var http = {
}
};
module.exports = http;
if (typeof angular !== 'undefined') {
angular.module('cordovaHTTP', []).factory('cordovaHTTP', function ($timeout, $q) {
function makePromise(fn, args, async) {
@@ -214,6 +212,6 @@ if (typeof angular !== 'undefined') {
};
return cordovaHTTP;
});
} else {
window.cordovaHTTP = http;
}
module.exports = http;