summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-aria2/luasrc
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2018-10-28 22:38:20 +0100
committerStefan Weil <sw@weilnetz.de>2018-10-28 22:38:20 +0100
commitec63339ae5258509cf7a8829d4dd79519948c256 (patch)
tree1ae6ab68f92f6c483b0e466b72e9b2ce9a702037 /applications/luci-app-aria2/luasrc
parent35b543e270428357d22ede5ceff39653b3371a1b (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')
-rw-r--r--applications/luci-app-aria2/luasrc/view/aria2/overview_status.htm3
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 {