mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 739234 - Deal with the odd case on a desktop computer where the backend error'd out. r=vingtetun
This commit is contained in:
parent
eb4d69133b
commit
43b51e306d
@ -60,9 +60,15 @@ DOMWifiManager.prototype = {
|
||||
this._mm = Cc["@mozilla.org/childprocessmessagemanager;1"].getService(Ci.nsISyncMessageSender);
|
||||
|
||||
var state = this._mm.sendSyncMessage("WifiManager:getState")[0];
|
||||
this._currentNetwork = state.network;
|
||||
this._lastConnectionInfo = state.connectionInfo;
|
||||
this._enabled = state.enabled;
|
||||
if (state) {
|
||||
this._currentNetwork = state.network;
|
||||
this._lastConnectionInfo = state.connectionInfo;
|
||||
this._enabled = state.enabled;
|
||||
} else {
|
||||
this._currentNetwork = null;
|
||||
this._lastConnectionInfo = null;
|
||||
this._enabled = null;
|
||||
}
|
||||
},
|
||||
|
||||
uninit: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user