diff --git a/js/ConnectingToNetworkPage.js b/js/ConnectingToNetworkPage.js index 6c44472..107bb9c 100644 --- a/js/ConnectingToNetworkPage.js +++ b/js/ConnectingToNetworkPage.js @@ -82,7 +82,7 @@ _statusField.html(statusText); _actionField.html(actionText); - if(data.status == NetworkAPI.STATUS.CONNECTED) { + if(data.status === NetworkAPI.STATUS.CONNECTED) { _networkAPI.stopAutoRefresh(); } diff --git a/js/JoinNetworkPage.js b/js/JoinNetworkPage.js index 4818d2b..b745278 100644 --- a/js/JoinNetworkPage.js +++ b/js/JoinNetworkPage.js @@ -67,7 +67,7 @@ console.log(" network: ",network); linkParams.ssid = network.ssid; - var secured = (network.encryption !== "none" && network.encryption !== "") + var secured = (network.encryption !== "none" && network.encryption !== ""); var link; var icon = ""; if(secured) { diff --git a/js/main.js b/js/main.js index 7b34a15..760004f 100644 --- a/js/main.js +++ b/js/main.js @@ -19,12 +19,9 @@ d3d.util = { var pair = value.split( "=" ); if ( pair.length > 0 && pair[ 0 ] ) { parameters[ pair[ 0 ] ] = - ( pair.length > 1 ? pair[ 1 ] : true ); + ( pair.length > 1 ? decodeURIComponent(pair[ 1 ]) : true ); } }); - $.each(parameters, function( index, value ) { - parameters[index] = decodeURIComponent(value) - }); } return { parsed: parsed,