luci-base: actually use the packaged options for poll.add calls
authorPaul Donald <newtwen+github@gmail.com>
Thu, 24 Oct 2024 14:15:30 +0000 (16:15 +0200)
committerPaul Donald <newtwen+github@gmail.com>
Thu, 24 Oct 2024 14:35:15 +0000 (16:35 +0200)
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
modules/luci-base/htdocs/luci-static/resources/luci.js

index ca0e80a82a6be4b8df70a3514a11b984104d48ed..f462c468139649b67275fcdb5a46204fee9fbf2a 100644 (file)
                 * @hideconstructor
                 * @classdesc
                 *
-                * The `Request.poll` class provides some convince wrappers around
+                * The `Request.poll` class provides some convenience wrappers around
                 * {@link LuCI.poll} mainly to simplify registering repeating HTTP
                 * request calls as polling functions.
                 */
                                    opts = Object.assign({}, options, { timeout: ival * 1000 - 5 });
 
                                var fn = function() {
-                                       return Request.request(url, options).then(function(res) {
+                                       return Request.request(url, opts).then(function(res) {
                                                if (!Poll.active())
                                                        return;