mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-01 02:12:58 +08:00
Fix for Issue #210: devready event never fires if we can't get network connection info
This commit is contained in:
parent
9083e921d9
commit
6af5e2e2e1
@ -47,6 +47,12 @@ var Connection = function() {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
function(e) {
|
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);
|
console.log("Error initializing Network Connection: " + e);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user