diff options
author | Stan Grishin <stangri@melmac.ca> | 2023-12-09 13:43:05 +0000 |
---|---|---|
committer | Stan Grishin <stangri@melmac.ca> | 2023-12-09 13:43:12 +0000 |
commit | 0473939fff65384badf6d15f30a0e236f2110b3c (patch) | |
tree | e4692522e6fb1cc20d83130101d71a4075324641 /applications/luci-app-adblock-fast/htdocs/luci-static/resources | |
parent | 864bf25244a073bf85272524cd90df0a41629577 (diff) |
luci-app-adblock-fast: bugfix: L.uci.load
* fix app not working on systems without smartdns
* fix smartdns instances selection dependencies
Signed-off-by: Stan Grishin <stangri@melmac.ca>
Diffstat (limited to 'applications/luci-app-adblock-fast/htdocs/luci-static/resources')
-rw-r--r-- | applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js b/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js index f34855a6f8..086200aa89 100644 --- a/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js +++ b/applications/luci-app-adblock-fast/htdocs/luci-static/resources/view/adblock-fast/overview.js @@ -25,9 +25,9 @@ return view.extend({ return Promise.all([ L.resolveDefault(adb.getFileUrlFilesizes(pkg.Name), {}), L.resolveDefault(adb.getPlatformSupport(pkg.Name), {}), - L.uci.load(pkg.Name), - L.uci.load("dhcp"), - L.uci.load("smartdns"), + L.resolveDefault(L.uci.load(pkg.Name), {}), + L.resolveDefault(L.uci.load("dhcp"), {}), + L.resolveDefault(L.uci.load("smartdns"), {}), ]); }, @@ -241,6 +241,8 @@ return view.extend({ o.value("-", _("No AdBlock on SmartDNS")); o.default = "*"; o.depends("dns", "smartdns.domainset"); + o.depends("dns", "smartdns.ipset"); + o.depends("dns", "smartdns.nftset"); o.retain = true; o = s1.taboption( |