diff --git a/www/cordovaHTTP.js b/www/cordovaHTTP.js index 5c0bfc6..634b2e9 100644 --- a/www/cordovaHTTP.js +++ b/www/cordovaHTTP.js @@ -63,7 +63,7 @@ var http = { } }; -if (typeof(angular) !== 'undefined') { +if (angular) { angular.module('cordovaHTTP', []).factory('cordovaHTTP', function($timeout, $q) { function makePromise(fn, args, async) { var deferred = $q.defer();