prevent crash when angular is not defined

This commit is contained in:
Andrew Stephan
2014-04-01 12:28:27 -04:00
parent 6dfdd00304
commit 4371f56b43
+1 -1
View File
@@ -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();