0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-06-02 20:54:31 +02:00

Fix #246. Assume ap created when empty network status

This commit is contained in:
peteruithoven 2014-05-22 13:58:24 +02:00
parent 953d50e5fc
commit 53843f499c

View File

@ -145,6 +145,9 @@ function NetworkPanel() {
this.retrieveNetworkStatus = function(connecting) { this.retrieveNetworkStatus = function(connecting) {
//console.log("NetworkPanel:retrieveNetworkStatus"); //console.log("NetworkPanel:retrieveNetworkStatus");
_api.status(function(data) { _api.status(function(data) {
if(data.status === "") {
data.status = NetworkAPI.STATUS.CREATED.toString();
}
if(typeof data.status === 'string') { if(typeof data.status === 'string') {
data.status = parseInt(data.status); data.status = parseInt(data.status);
} }