Bug 1079173 - Check existence of netId instead of check it's value. r=hchang

This commit is contained in:
Chuck Lee 2014-10-13 10:05:33 +08:00
parent f00983bfc4
commit a1f78b7895

View File

@ -1859,7 +1859,7 @@ function WifiWorker() {
var pub = new Network(ssid, security, password);
if (net.identity)
pub.identity = dequote(net.identity);
if (net.netId)
if ("netId" in net)
pub.known = true;
if (net.scan_ssid === 1)
pub.hidden = true;