diff options
author | Evan Benn <evan.benn@morsemicro.com> | 2023-12-08 13:18:41 +1100 |
---|---|---|
committer | Evan Benn <evan.benn@morsemicro.com> | 2023-12-15 09:11:13 +1100 |
commit | e02df6505f63dc1670a3482750b8d6acb34aaceb (patch) | |
tree | 6dfedae927191e5d9b7347267b98c7cd7a902447 /modules/luci-base/htdocs/luci-static | |
parent | 23931c3778337927945c7c9648ad9d5d9805ce98 (diff) |
luci-base: Use getMode in getActiveMode
Signed-off-by: Evan Benn <evan.benn@morsemicro.com>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/network.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/network.js b/modules/luci-base/htdocs/luci-static/resources/network.js index 887c3d57f0..5c48d3c900 100644 --- a/modules/luci-base/htdocs/luci-static/resources/network.js +++ b/modules/luci-base/htdocs/luci-static/resources/network.js @@ -3837,7 +3837,7 @@ WifiNetwork = baseclass.extend(/** @lends LuCI.network.WifiNetwork.prototype */ * - `Unknown` */ getActiveMode: function() { - var mode = this.ubus('net', 'iwinfo', 'mode') || this.ubus('net', 'config', 'mode') || this.get('mode') || 'ap'; + var mode = this.ubus('net', 'iwinfo', 'mode') || this.getMode(); switch (mode) { case 'ap': return 'Master'; |