mirror of
https://github.com/silkimen/cordova-plugin-advanced-http.git
synced 2026-05-31 00:00:07 +08:00
minor changes for cleanup
This commit is contained in:
@@ -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
@@ -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
@@ -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;
|
||||
Reference in New Issue
Block a user