Drop name from bridge icon.

This commit is contained in:
Denis Švara
2026-01-08 16:50:52 +01:00
parent 70853ef7d3
commit e286539930
@@ -20,11 +20,10 @@ BridgeElement.prototype.getButton = function() {
}
BridgeElement.prototype.getIcon = function() {
const name = this.bridgeAttribute("icon-name")
const url = this.bridgeAttribute(`icon-${this.platform}-url`)
const url = this.bridgeAttribute(`icon-url`)
if (name || url) {
return { name, url }
if (url) {
return { url }
}
return null