From 0f8aea76e0d1597cf3f53664941e157cdeb631ed Mon Sep 17 00:00:00 2001 From: Dirk Brenken Date: Mon, 6 Apr 2020 14:41:36 +0200 Subject: 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 --- .../htdocs/luci-static/resources/view/adblock/logread.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'applications/luci-app-adblock/htdocs/luci-static/resources/view/adblock/logread.js') 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) { -- cgit v1.2.3