luci-app-adblock: refresh report data on page load

* refresh report data on page load (without hitting
  the refresh button explicity)

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit bfcd962ffd)
This commit is contained in:
Dirk Brenken 2020-04-11 20:35:06 +02:00
parent 6f0a24f85b
commit a58122d0aa
No known key found for this signature in database
GPG key ID: 9D71CD547BFAE684

View file

@ -188,7 +188,7 @@ function handleAction(ev) {
return L.view.extend({
load: function() {
return L.resolveDefault(fs.exec_direct('/etc/init.d/adblock', ['report', '+', '50', 'false', 'json']),'');
return L.resolveDefault(fs.exec_direct('/etc/init.d/adblock', ['report', '+', '50', 'true', 'json']),'');
},
render: function(dnsreport) {