From: Jo-Philipp Wich Date: Sat, 14 Sep 2019 15:03:23 +0000 (+0200) Subject: luci-base: network.js: register "none" protocol X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7c9d1a259ca739bec577a89481b92c1ae2cc3c22;p=oweals%2Fluci.git luci-base: network.js: register "none" protocol Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-base/htdocs/luci-static/resources/network.js b/modules/luci-base/htdocs/luci-static/resources/network.js index 106139f26..525b7c9f1 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 } });