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>
This commit is contained in:
Dirk Brenken 2020-04-11 20:35:06 +02:00
parent 57f27cf7f8
commit bfcd962ffd
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) {