From 4371f56b438d64149aba49c177f23fdb9cfba5c2 Mon Sep 17 00:00:00 2001 From: Andrew Stephan Date: Tue, 1 Apr 2014 12:28:27 -0400 Subject: [PATCH] prevent 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..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();