summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-11-11 19:55:18 +0100
committerJo-Philipp Wich <jo@mein.io>2021-11-16 13:06:03 +0100
commitde4c4f7fd445e7a59691e50edead472900270e59 (patch)
tree9f8a97111a15ea9c82507afcc2c5ae2b0a6c374c /modules/luci-base/htdocs/luci-static/resources
parent75c6251c6eacf06888cac68d11b6197669c8a990 (diff)
luci-base: luci.js: fix undefined variable access in Request.request()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static/resources')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/luci.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/luci.js b/modules/luci-base/htdocs/luci-static/resources/luci.js
index 5699c9eb92..fcab3a4018 100644
--- a/modules/luci-base/htdocs/luci-static/resources/luci.js
+++ b/modules/luci-base/htdocs/luci-static/resources/luci.js
@@ -764,7 +764,7 @@
if (opt.content != null) {
switch (typeof(opt.content)) {
case 'function':
- content = opt.content(xhr);
+ content = opt.content(opt.xhr);
break;
case 'object':