From 19f9fc40281cf08be024d263cd1de4bb91d04360 Mon Sep 17 00:00:00 2001 From: Andrew Stephan Date: Tue, 1 Apr 2014 13:06:39 -0400 Subject: [PATCH] fix crash when angular is not defined --- www/cordovaHTTP.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/cordovaHTTP.js b/www/cordovaHTTP.js index 634b2e9..0b5e64b 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();