luci-base: luci.js: fix undefined variable access in Request.request()

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit de4c4f7fd4)
This commit is contained in:
Jo-Philipp Wich 2021-11-11 19:55:18 +01:00
parent dd54dcef26
commit d79b81b852

View file

@ -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':