From 6014f115fad4c4f0da52dcdee21d5e0684658fe8 Mon Sep 17 00:00:00 2001 From: Christian Herzog Date: Sat, 5 Oct 2019 12:17:44 +0200 Subject: [PATCH] damn typo --- components/wifi-manager/code.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/wifi-manager/code.js b/components/wifi-manager/code.js index a4f4551e..cb30a15c 100644 --- a/components/wifi-manager/code.js +++ b/components/wifi-manager/code.js @@ -440,7 +440,7 @@ function performConnect(conntype){ stopRefreshAPInterval(); var pwd; - var dhcp-name $("#dhcp-name").val();; + var dhcpname = $("#dhcp-name").val();; if (conntype == 'manual') { //Grab the manual SSID and PWD selectedSSID=$('#manual_ssid').val(); @@ -464,7 +464,7 @@ function performConnect(conntype){ dataType: 'json', method: 'POST', cache: false, - headers: { 'X-Custom-ssid': selectedSSID, 'X-Custom-pwd': pwd, 'X-Custom-host_name': dhcp-name }, + headers: { 'X-Custom-ssid': selectedSSID, 'X-Custom-pwd': pwd, 'X-Custom-host_name': dhcpname }, data: { 'timestamp': Date.now()}, error: function (xhr, ajaxOptions, thrownError) { console.log(xhr.status);