mirror of
https://github.com/silkimen/cordova-plugin-advanced-http.git
synced 2026-04-24 00:00:03 +08:00
prevent crash when angular is not defined
This commit is contained in:
Vendored
+1
-1
@@ -63,7 +63,7 @@ var http = {
|
||||
}
|
||||
};
|
||||
|
||||
if (angular) {
|
||||
if (typeof(angular) !== 'undefined') {
|
||||
angular.module('cordovaHTTP', []).factory('cordovaHTTP', function($timeout, $q) {
|
||||
function makePromise(fn, args, async) {
|
||||
var deferred = $q.defer();
|
||||
|
||||
Reference in New Issue
Block a user