luci-base: prevent trace-back loading wireless on non-WiFi devices
authorPaul Donald <newtwen+github@gmail.com>
Sun, 22 Dec 2024 00:38:32 +0000 (00:38 +0000)
committerPaul Donald <newtwen+github@gmail.com>
Sun, 22 Dec 2024 16:23:26 +0000 (16:23 +0000)
commit41cbd31c90f47dd81613b0af3190cc8d2afeb562
tree7a870e5a07252e658a8a39b0e3a31d9acbee3fc9
parentdef988495a41f6388419ef34a209046e7542d495
luci-base: prevent trace-back loading wireless on non-WiFi devices

Manifests in the console as:

RPCError: RPC call to uci/get failed with ubus code 4: Resource not found

The lazy-loading is harmless and has been that way for years, but the
presence of the trace-back clouds other problems. This should keep the
console cleaner; it conditionally attempts to load wireless when a more
fundamental check for it passes.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
modules/luci-base/htdocs/luci-static/resources/network.js