From de4c4f7fd445e7a59691e50edead472900270e59 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 11 Nov 2021 19:55:18 +0100 Subject: luci-base: luci.js: fix undefined variable access in Request.request() Signed-off-by: Jo-Philipp Wich --- modules/luci-base/htdocs/luci-static/resources/luci.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/luci-base/htdocs/luci-static/resources') 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': -- cgit v1.2.3