Skip to content

Commit 1546334

Browse files
committed
Fix #201 send ap_timeout as integer, not string
1 parent 4ea1417 commit 1546334

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ function submitWiFi() {
789789
'ssid': $('#ssid').val(),
790790
'passphrase': $('#password').val(),
791791
'hostname': $('#hostname').val(),
792-
'sta_timeout': $('#staTimeout').val(),
792+
'sta_timeout': parseInt($('#staTimeout').val()),
793793
'ip': [parseInt(ip[0]), parseInt(ip[1]), parseInt(ip[2]), parseInt(ip[3])],
794794
'netmask': [parseInt(netmask[0]), parseInt(netmask[1]), parseInt(netmask[2]), parseInt(netmask[3])],
795795
'gateway': [parseInt(gateway[0]), parseInt(gateway[1]), parseInt(gateway[2]), parseInt(gateway[3])],

0 commit comments

Comments
 (0)