From: Jo-Philipp Wich Date: Thu, 11 Nov 2021 18:55:18 +0000 (+0100) Subject: luci-base: luci.js: fix undefined variable access in Request.request() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=de4c4f7fd445e7a59691e50edead472900270e59;p=project%2Fluci.git luci-base: luci.js: fix undefined variable access in Request.request() Signed-off-by: Jo-Philipp Wich --- 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':