Fix for Issue #210: devready event never fires if we can't get network connection info

This commit is contained in:
macdonst 2011-08-27 04:04:57 +08:00 committed by brianleroux
parent 9083e921d9
commit 6af5e2e2e1

View File

@ -47,6 +47,12 @@ var Connection = function() {
}
},
function(e) {
// If we can't get the network info we should still tell PhoneGap
// to fire the deviceready event.
if (me._firstRun) {
me._firstRun = false;
PhoneGap.onPhoneGapConnectionReady.fire();
}
console.log("Error initializing Network Connection: " + e);
});
};