Just return the object

This commit is contained in:
Adrien Maston
2026-02-26 11:48:01 +01:00
parent 047e8efad3
commit a62defb570
@@ -1,13 +1,12 @@
import { BridgeElement } from "@hotwired/hotwire-native-bridge"
BridgeElement.prototype.getButton = function() {
const button = {
return {
title: this.title,
icon: this.getIcon(),
displayTitle: this.getDisplayTitle(),
displayAsPrimaryAction: this.getDisplayAsPrimaryAction()
}
return button
}
BridgeElement.prototype.getIcon = function() {