Christian Herzog 5 år sedan
förälder
incheckning
6014f115fa
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      components/wifi-manager/code.js

+ 2 - 2
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);