luci-app-adblock: bugfix
* fix nil error on overview page Signed-off-by: Dirk Brenken <dev@brenken.org>
This commit is contained in:
parent
3c5e41d369
commit
985f0f5118
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ local sys = require("luci.sys")
|
|||
local json = require("luci.jsonc")
|
||||
local adbinput = uci.get("adblock", "global", "adb_rtfile") or "/tmp/adb_runtime.json"
|
||||
local dnspath = uci.get("adblock", "global", "adb_dnsdir") or ""
|
||||
local parse = json.parse(fs.readfile(adbinput))
|
||||
local parse = json.parse(fs.readfile(adbinput) or "")
|
||||
if parse ~= nil then
|
||||
version = parse.data.adblock_version
|
||||
domains = parse.data.blocked_domains
|
||||
|
|
Loading…
Reference in a new issue