fix crash when angular is not defined

This commit is contained in:
Andrew Stephan
2014-04-01 13:06:39 -04:00
parent d0bebc3f39
commit 19f9fc4028
+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();