luci-base: luci.js: fix undefined variable access in Request.request()
authorJo-Philipp Wich <jo@mein.io>
Thu, 11 Nov 2021 18:55:18 +0000 (19:55 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 16 Nov 2021 12:06:03 +0000 (13:06 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/luci.js

index 5699c9eb92651c0982d9b06f24fcd1031b20ad85..fcab3a4018542190c8776495924d11170fb3dd0c 100644 (file)
                                if (opt.content != null) {
                                        switch (typeof(opt.content)) {
                                        case 'function':
-                                               content = opt.content(xhr);
+                                               content = opt.content(opt.xhr);
                                                break;
 
                                        case 'object':