From: Paul Donald Date: Tue, 8 Apr 2025 01:46:28 +0000 (+0200) Subject: luci-mod-network: give wireless.js ES2016 treatment and refactor X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=0d610e7466b0d886bd9fd7b9495b8b2b65d7b15b;p=openwrt-luci.git luci-mod-network: give wireless.js ES2016 treatment and refactor typo Signed-off-by: Paul Donald --- diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js index e219a12175..9cc9cd5bdd 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js @@ -203,7 +203,7 @@ function format_wifirate(rate) { const eht_dcm = rate?.eht_dcm ?? 0; if (ht || vht) s += [ - vht && `, VHT-MCS\xa0${$mcs}`, + vht && `, VHT-MCS\xa0${mcs}`, nss && `, VHT-NSS\xa0${nss}`, ht && `, MCS\xa0${mcs}`, sgi && ', ' + _('Short GI').replace(/ /g, '\xa0')