summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/logread.js
diff options
context:
space:
mode:
authorDirk Brenken <dev@brenken.org>2020-04-06 14:41:36 +0200
committerDirk Brenken <dev@brenken.org>2020-04-06 14:41:36 +0200
commit0f8aea76e0d1597cf3f53664941e157cdeb631ed (patch)
tree4df1cd0b1669fc43c2a6396456d09c2a8eec71e0 /applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/logread.js
parent65fb44da9fb8435c7958455bb4b00354bff6cb00 (diff)
luci-app-adblock: revert poll/view class changes
* this partly reverts 3c4bc22 to ensure 19.07.2 compatibility, this is only a temporary "fix" as long as we don't have adblock 4 backported to 19.07 branch Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/logread.js')
-rw-r--r--applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/logread.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/logread.js b/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/logread.js
index 4dc2a2e53..64f23b14c 100644
--- a/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/logread.js
+++ b/applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/logread.js
@@ -1,9 +1,7 @@
'use strict';
-'require view';
-'require poll';
'require fs';
-return view.extend({
+return L.view.extend({
load: function() {
return Promise.all([
L.resolveDefault(fs.stat('/sbin/logread'), null),
@@ -12,7 +10,7 @@ return view.extend({
},
render: function(stat) {
var logger = stat[0] ? stat[0].path : stat[1] ? stat[1].path : null;
- poll.add(function() {
+ L.Poll.add(function() {
return L.resolveDefault(fs.exec_direct(logger, ['-e', 'adblock-'])).then(function(res) {
var log = document.getElementById("logfile");
if (res) {