0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-11-21 17:07:55 +01:00

Fixed can't find network.encryption javascript error

This commit is contained in:
peteruithoven 2014-02-04 14:35:30 +01:00
parent 1523ba3227
commit 6cac5fc6f5

View File

@ -265,10 +265,11 @@ function NetworkPanel() {
console.log("NetworkPanel:selectNetwork: ",ssid);
if(ssid == "") return;
_selectedNetwork = ssid;
if(_networks == undefined || ssid == CLIENT_MODE_STATE.NOT_CONNECTED) {
if(ssid == CLIENT_MODE_STATE.NOT_CONNECTED) {
hideWiFiPassword();
} else {
var network = _networks[ssid];
if(network === undefined) return;
if(network.encryption == "none") {
hideWiFiPassword();
} else {