luci-app-banip: handle json load errors
authorDirk Brenken <dev@brenken.org>
Mon, 22 Apr 2024 20:28:58 +0000 (22:28 +0200)
committerDirk Brenken <dev@brenken.org>
Fri, 26 Apr 2024 19:32:14 +0000 (21:32 +0200)
commitad3f0544783768111faf37fab9d74d71b47f631e
tree4f85097bb3f33839fb192d2f0cf73494aa21d905
parent3d4f695894ac4ab3ca741c1b8fafa6568fdd6cf2
luci-app-banip: handle json load errors

* properly handle possible json load errors in try/catch blocks

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 32babe7069c2297ae8f2578e38762b3406bc84d7)
applications/luci-app-banip/htdocs/luci-static/resources/view/banip/overview.js
applications/luci-app-banip/htdocs/luci-static/resources/view/banip/setreport.js