develop
canConnect
var canConnect = function() { var deferred = $q.defer(); var testDb = 'connection_test'; var counter = 0; var reason;