diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-09-14 17:03:23 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-09-14 17:04:02 +0200 |
commit | 7c9d1a259ca739bec577a89481b92c1ae2cc3c22 (patch) | |
tree | 041063f0f746750416009ebc7f8a990920e0bd93 /modules/luci-base/htdocs/luci-static | |
parent | 4eeded7051435eaabd22f0e9c2b9a13d700db2bd (diff) |
luci-base: network.js: register "none" protocol
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/network.js | 4 |
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 } }); |