summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-09-14 17:03:23 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-14 17:04:02 +0200
commit7c9d1a259ca739bec577a89481b92c1ae2cc3c22 (patch)
tree041063f0f746750416009ebc7f8a990920e0bd93 /modules
parent4eeded7051435eaabd22f0e9c2b9a13d700db2bd (diff)
luci-base: network.js: register "none" protocol
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/network.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/network.js b/modules/luci-base/htdocs/luci-static/resources/network.js
index 106139f267..525b7c9f19 100644
--- a/modules/luci-base/htdocs/luci-static/resources/network.js
+++ b/modules/luci-base/htdocs/luci-static/resources/network.js
@@ -175,6 +175,10 @@ function getProtocolHandlers(cache) {
if (!L.isObject(protos))
throw !1;
+ /* Register "none" protocol */
+ if (!protos.hasOwnProperty('none'))
+ Object.assign(protos, { none: { no_device: false } });
+
/* Hack: emulate relayd protocol */
if (!protos.hasOwnProperty('relay'))
Object.assign(protos, { relay: { no_device: true } });