luci-base: fix error 404 on missing relay protocol
authorAnsuel Smith <ansuelsmth@gmail.com>
Thu, 12 Mar 2020 15:46:53 +0000 (16:46 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 7 May 2020 17:40:49 +0000 (19:40 +0200)
commit9c5408499a9a4f6d987f9068b7ea32324a06c6d0
tree49bf969df9ab0b252ab961ae949f018c6568ca4e
parentde94bfefbd3e0965c7034172ff5248d9e537a419
luci-base: fix error 404 on missing relay protocol

Currently relay.js is included in any case even if
the router doesn't have the needed package to use it.
Fix this by checking if the system has this feature.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
(cherry picked from commit 3d70d3e5d786383b8754200cf065713b191bdead)
modules/luci-base/htdocs/luci-static/resources/network.js