diff --git a/www/cordovaHTTP.js b/www/cordovaHTTP.js index 634b2e9..5c0bfc6 100644 --- a/www/cordovaHTTP.js +++ b/www/cordovaHTTP.js @@ -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();