luci-app-attendedsysupgrade: add timeout and catch
authorPaul Spooren <mail@aparcar.org>
Mon, 9 Aug 2021 18:45:58 +0000 (08:45 -1000)
committerPaul Spooren <mail@aparcar.org>
Mon, 9 Aug 2021 20:04:05 +0000 (10:04 -1000)
commitff24b78c807a52a0f9afb62ba0aba1085d9ad045
tree292626da38aa4f7ec58aff76811f41e6d395fd11
parent96ef7beb66de322411ad9a784953d7ff5a0ddfc1
luci-app-attendedsysupgrade: add timeout and catch

If the upgrade server API does not respond, show an error message.
Fix #5222

While at it, minimal code linting

Signed-off-by: Paul Spooren <mail@aparcar.org>
applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js