From 121e7fea66b686cab8756ccdc0727b47afb288d2 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 20 Dec 2018 10:09:58 +0100 Subject: luci-app-*: use default poll interval Replace all XHR poll time number with -1 so they will use the default poll interval time value from "/etc/config/luci". If this is not set then 5 seconds as default is used. Signed-off-by: Florian Eckert --- applications/luci-app-wireguard/luasrc/view/wireguard.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applications/luci-app-wireguard') diff --git a/applications/luci-app-wireguard/luasrc/view/wireguard.htm b/applications/luci-app-wireguard/luasrc/view/wireguard.htm index 6ec9ddb36..53968da1d 100644 --- a/applications/luci-app-wireguard/luasrc/view/wireguard.htm +++ b/applications/luci-app-wireguard/luasrc/view/wireguard.htm @@ -113,7 +113,7 @@ } } - XHR.poll(5, '<%=REQUEST_URI%>', { status: 1 }, + XHR.poll(-1, '<%=REQUEST_URI%>', { status: 1 }, function(x, data) { for (var key in data) { if (!data.hasOwnProperty(key)) { continue; } -- cgit v1.2.3