From e34c268411b2fea71e419be5dc0f8f6976d4e714 Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Thu, 24 Oct 2024 16:15:30 +0200 Subject: [PATCH] luci-base: actually use the packaged options for poll.add calls Signed-off-by: Paul Donald --- modules/luci-base/htdocs/luci-static/resources/luci.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/luci.js b/modules/luci-base/htdocs/luci-static/resources/luci.js index ca0e80a82a..f462c46813 100644 --- a/modules/luci-base/htdocs/luci-static/resources/luci.js +++ b/modules/luci-base/htdocs/luci-static/resources/luci.js @@ -925,7 +925,7 @@ * @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. */ @@ -980,7 +980,7 @@ 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; -- 2.30.2