From d79b81b852bf06a30b6b5411d2c2c6ce1b2b47b8 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 11 Nov 2021 19:55:18 +0100 Subject: [PATCH] luci-base: luci.js: fix undefined variable access in Request.request() Signed-off-by: Jo-Philipp Wich (cherry picked from commit de4c4f7fd445e7a59691e50edead472900270e59) --- modules/luci-base/htdocs/luci-static/resources/luci.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/luci.js b/modules/luci-base/htdocs/luci-static/resources/luci.js index b06688ea29..2cc4a701f5 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': -- 2.30.2