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:
parent
dd54dcef26
commit
d79b81b852
1 changed files with 1 additions and 1 deletions
|
@ -764,7 +764,7 @@
|
||||||
if (opt.content != null) {
|
if (opt.content != null) {
|
||||||
switch (typeof(opt.content)) {
|
switch (typeof(opt.content)) {
|
||||||
case 'function':
|
case 'function':
|
||||||
content = opt.content(xhr);
|
content = opt.content(opt.xhr);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'object':
|
case 'object':
|
||||||
|
|
Loading…
Reference in a new issue