summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs/luci-static/resources/xhr.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-base/htdocs/luci-static/resources/xhr.js')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/xhr.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/xhr.js b/modules/luci-base/htdocs/luci-static/resources/xhr.js
index 8292fcdb6..3133898b5 100644
--- a/modules/luci-base/htdocs/luci-static/resources/xhr.js
+++ b/modules/luci-base/htdocs/luci-static/resources/xhr.js
@@ -169,8 +169,8 @@ XHR.post = function(url, data, callback) {
}
XHR.poll = function(interval, url, data, callback, post) {
- if (isNaN(interval) || interval < 1)
- interval = 5;
+ if (isNaN(interval) || interval <= 0)
+ interval = L.env.pollinterval;
if (!XHR._q) {
XHR._t = 0;