luci-base: actually use the packaged options for poll.add calls

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
Paul Donald 2024-10-24 16:15:30 +02:00
parent 345f6b8796
commit e34c268411

View File

@ -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;