mirror of
https://github.com/openwrt/luci
synced 2025-01-09 04:28:37 +08:00
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:
parent
345f6b8796
commit
e34c268411
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user