Show MAC addresses in the Bluetooth panel

This commit is contained in:
SirBlob committed 2026-10-10 23:11:31 -04:00
1 parent 98c63031ee
commit 72d6a8f509
3 files changed
+21 -3

No files matched your search

+12
View File
@@ -3,6 +3,17 @@ function deviceLabel(device) {
return String(device.deviceName || device.name || "").trim()
}
function deviceDetail(status, address) {
var parts = []
var statusText = String(status || "").trim()
var addressText = String(address || "").trim().toUpperCase()
if (statusText !== "") parts.push(statusText)
if (addressText !== "") parts.push(addressText)
return parts.join(" · ")
}
function toArray(values) {
if (!values) return []
if (Array.isArray(values)) return values.slice()
@@ -157,6 +168,7 @@ function sectionDevices(lists, section) {
if (typeof module !== "undefined") {
module.exports = {
deviceLabel: deviceLabel,
deviceDetail: deviceDetail,
toArray: toArray,
isUuidLike: isUuidLike,
isAddressLike: isAddressLike,