diff options
author | Stefan Weil <sw@weilnetz.de> | 2018-10-28 22:38:20 +0100 |
---|---|---|
committer | Stefan Weil <sw@weilnetz.de> | 2018-10-28 22:38:20 +0100 |
commit | ec63339ae5258509cf7a8829d4dd79519948c256 (patch) | |
tree | 1ae6ab68f92f6c483b0e466b72e9b2ce9a702037 /applications/luci-app-aria2/luasrc/view | |
parent | 35b543e270428357d22ede5ceff39653b3371a1b (diff) |
Add missing variable declarations in JavaScript code
This fixes errors reported by LGTM.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'applications/luci-app-aria2/luasrc/view')
-rw-r--r-- | applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm b/applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm index b14cca228..66db6ce55 100644 --- a/applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm +++ b/applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm @@ -24,7 +24,7 @@ function randomString(len) { var $chars = 'abcdefghijklmnopqrstuvwxyz1234567890'; var maxPos = $chars.length; var pwd = ''; - for (i = 0; i < len; i++) { + for (var i = 0; i < len; i++) { pwd += $chars.charAt(Math.floor(Math.random() * maxPos)); } return pwd; @@ -41,6 +41,7 @@ function showRPCURL() { var newTextNode = document.getElementById("aria2rpcpath"); var auth_method = document.getElementById("cbid.aria2.main.rpc_auth_method"); var auth_port = document.getElementById("cbid.aria2.main.rpc_listen_port"); + var auth_port_value; if (auth_port.value == "") { auth_port_value = "6800" } else { |