luci-base: luci.js: fix undefined variable access in Request.request()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
75c6251c6e
commit
de4c4f7fd4
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